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 = 0The
GETmethod requests a representation of the specified resource.Head = 1The
HEADmethod requests a response identical to aGETresponse, but without the response body.Post = 2The
POSTmethod submits an entity to the specified resource.Put = 3The
PUTmethod replaces all current representations of the target resource with the request payload.Delete = 4The
DELETEmethod deletes the specified resource.Options = 5The
OPTIONSmethod describes the communication options for the target resource.Patch = 6The
PATCHmethod 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.