Table of Contents

Enum HttpMethods

Namespace
Cuemon.Net.Http
Assembly
Cuemon.Net.dll

Defines the official HTTP data transfer method (such as GET, POST, or HEAD) used by the client to query a web server.

[Flags]
public enum HttpMethods

Fields

Delete = 32

Represents an HTTP DELETE protocol method.

Get = 2

Represents an HTTP GET protocol method.

Head = 4

Represents an HTTP HEAD protocol method. The HEAD method is identical to GET except that the server only returns message-headers in the response, without a message-body.

Options = 1

Represents an HTTP OPTIONS protocol method.

Patch = 128

Represents an HTTP PATCH protocol method.

Post = 8

Represents an HTTP POST protocol method that is used to post a new entity as an addition to a URI.

Put = 16

Represents an HTTP PUT protocol method that is used to replace an entity identified by a URI.

Trace = 64

Represents an HTTP TRACE protocol method.

Remarks

These are the official HTTP methods as specified in RFC 2616, section 9 (except for the CONNECT method).
RFC 2616: http://www.w3.org/Protocols/rfc2616/rfc2616.html, RFC 2616 section 9: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.
Includes RFC 5789: https://tools.ietf.org/html/rfc5789 also; Patch, as some public APIs has started using this.

This enumeration has a System.FlagsAttribute that allows a bitwise combination of its member values.