What's the difference between HttpMethod and RequestType of HttpRequest?

前端 未结 2 667
你的背包
你的背包 2021-02-05 04:29

The HttpRequest class defines two properties:

HttpMethod:

Gets the HTTP data transfer method (such as GET, POST, or HEAD) used by the

2条回答
  •  甜味超标
    2021-02-05 04:35

    Reflector shows that RequestType calls HttpMethod internally. So you're ever so slightly better off calling HttpMethod. Actually I think the real reason RequestType exists was for backwards compatibility with classic ASP.

提交回复
热议问题