Class HttpVerb
- Namespace
- Kampute.HttpClient
- Assembly
- Kampute.HttpClient.dll
A helper class for retrieving the standard HTTP methods.
public static class HttpVerb
- Inheritance
-
HttpVerb
- Inherited Members
Remarks
This class supplements the standard HttpMethod class with additional, commonly used HTTP methods that are not covered by the .NET Standard 2.0 specification.
Fields
Delete
Represents an HTTP DELETE protocol method.
public static readonly HttpMethod Delete
Field Value
Remarks
The DELETE method requests that the target resource be removed. It is used to delete a resource identified by a URI.
Get
Represents an HTTP GET protocol method.
public static readonly HttpMethod Get
Field Value
Remarks
The GET method requests a representation of the specified resource. Requests using GET should only retrieve data and should have no other effect.
Head
Represents an HTTP HEAD protocol method.
public static readonly HttpMethod Head
Field Value
Remarks
The HEAD method is identical to GET except that the server responds with headers only and no message body. It is often used for testing hypertext links for validity, accessibility, and recent modification.
Options
Represents an HTTP OPTIONS protocol method.
public static readonly HttpMethod Options
Field Value
Remarks
The OPTIONS method describes the communication options for the target resource. It can be used to query the server for supported HTTP methods and other options, without implying a resource action.
Patch
Represents an HTTP PATCH protocol method.
public static readonly HttpMethod Patch
Field Value
Remarks
The PATCH method applies partial modifications to a resource. It is used to make a partial update on a resource, in contrast to PUT which typically requires a complete resource representation.
Post
Represents an HTTP POST protocol method.
public static readonly HttpMethod Post
Field Value
Remarks
The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.
Put
Represents an HTTP PUT protocol method.
public static readonly HttpMethod Put
Field Value
Remarks
The PUT method replaces all current representations of the target resource with the request payload. It is used to update a resource entirely.
Trace
Represents an HTTP TRACE protocol method.
public static readonly HttpMethod Trace
Field Value
Remarks
The TRACE method performs a message loop-back test along the path to the target resource, providing a useful debugging mechanism.