WebRequestMethods.Http 类

定义

表示可与 HTTP 请求一起使用的 HTTP 协议方法的类型。Represents the types of HTTP protocol methods that can be used with an HTTP request.

public: ref class WebRequestMethods::Http abstract sealed
public static class WebRequestMethods.Http
type WebRequestMethods.Http = class
Public Class WebRequestMethods.Http
继承
WebRequestMethods.Http

字段

Connect

表示与代理一起使用的 HTTP CONNECT 协议方法,该代理可以动态切换到隧道,如 SSL 隧道的情况。Represents the HTTP CONNECT protocol method that is used with a proxy that can dynamically switch to tunneling, as in the case of SSL tunneling.

Get

表示 HTTP GET 协议方法。Represents an HTTP GET protocol method.

Head

表示 HTTP HEAD 协议方法。Represents an HTTP HEAD protocol method. HEAD 方法与 GET 相同,只是服务器仅返回响应(而不是消息正文)中的消息标头。The HEAD method is identical to GET except that the server only returns message-headers in the response, without a message-body.

MkCol

表示一个 HTTP MKCOL 请求,该请求在请求 URI(统一资源标识符)指定的位置新建集合,如页的集合。Represents an HTTP MKCOL request that creates a new collection (such as a collection of pages) at the location specified by the request-Uniform Resource Identifier (URI).

Post

表示用于发布新实体作为对 URI 的补充的 HTTP POST 协议方法。Represents an HTTP POST protocol method that is used to post a new entity as an addition to a URI.

Put

表示用于替换 URI 所标识实体的 HTTP PUT 协议方法。Represents an HTTP PUT protocol method that is used to replace an entity identified by a URI.

适用于