HttpVerb Class

Namespace
Kampute.HttpClient
Assembly
  • Kampute.HttpClient.dll

Definition

Provides the standard HTTP methods on every target framework.
public static class HttpVerb
Inheritance

Remarks

HttpMethod has no Patch property on .NET Standard 2.0; this class provides it there too.

Fields

Delete

The DELETE method, which removes the target resource.
public static readonly HttpMethod Delete

Field Value

HttpMethod

Get

The GET method, which retrieves a representation of the target resource without changing it.
public static readonly HttpMethod Get

Field Value

HttpMethod

Head

The HEAD method, which is identical to GET except that the response has no body.
public static readonly HttpMethod Head

Field Value

HttpMethod

Options

The OPTIONS method, which asks for the communication options of the target resource, such as the methods it supports.
public static readonly HttpMethod Options

Field Value

HttpMethod

Patch

The PATCH method, which applies a partial update to the target resource.
public static readonly HttpMethod Patch

Field Value

HttpMethod

Post

The POST method, which submits the payload to the target resource for processing, such as to create a resource.
public static readonly HttpMethod Post

Field Value

HttpMethod

Put

The PUT method, which replaces the target resource with the payload.
public static readonly HttpMethod Put

Field Value

HttpMethod

Trace

The TRACE method, which asks the server to echo the request it received, for diagnostics.
public static readonly HttpMethod Trace

Field Value

HttpMethod