Table of Contents

Enum HtmxHttpVerb

Namespace
Ramstack.HtmxToolkit.Configuration
Assembly
Ramstack.HtmxToolkit.dll

Defines the HTTP methods that can be used in HTMX configuration.

public enum HtmxHttpVerb

Fields

Get = 0

The GET method requests a representation of the specified resource.

Head = 1

The HEAD method requests a response identical to a GET response, but without the response body.

Post = 2

The POST method submits an entity to the specified resource.

Put = 3

The PUT method replaces all current representations of the target resource with the request payload.

Delete = 4

The DELETE method deletes the specified resource.

Options = 5

The OPTIONS method describes the communication options for the target resource.

Patch = 6

The PATCH method applies partial modifications to a resource.

Remarks

HEAD and OPTIONS have no hx-* attribute and are available only through htmx.ajax.

There are no members for CONNECT and TRACE, because browsers do not allow requests with these methods.