Skip to main content Link Search Menu Expand Document (external link)

HttpMethod overview

Added in v1.0.0


Table of contents


models

HttpMethod (type alias)

Signature

export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS"

Added in v1.0.0

HttpMethod (namespace)

Added in v1.0.0

NoBody (type alias)

Signature

export type NoBody = "GET" | "HEAD" | "OPTIONS"

Added in v1.0.0

WithBody (type alias)

Signature

export type WithBody = Exclude<HttpMethod, NoBody>

Added in v1.0.0

utils

hasBody

Signature

export declare const hasBody: (method: HttpMethod) => boolean

Added in v1.0.0