Add HeadNoContent to Servant.API.Verbs (#1502)
As the head method isn't allowed to contain any response body, no general Head Verb is added. (This may easily lead to wrong usages...) (https://httpwg.org/specs/rfc7231.html#HEAD)
This commit is contained in:
parent
73c87bc2bc
commit
c388c5e82c
1 changed files with 2 additions and 1 deletions
|
@ -128,7 +128,8 @@ type DeleteNoContent = NoContentVerb 'DELETE
|
||||||
type PatchNoContent = NoContentVerb 'PATCH
|
type PatchNoContent = NoContentVerb 'PATCH
|
||||||
-- | 'PUT' with 204 status code.
|
-- | 'PUT' with 204 status code.
|
||||||
type PutNoContent = NoContentVerb 'PUT
|
type PutNoContent = NoContentVerb 'PUT
|
||||||
|
-- | 'HEAD' with 204 status code.
|
||||||
|
type HeadNoContent = NoContentVerb 'HEAD
|
||||||
|
|
||||||
-- ** 205 Reset Content
|
-- ** 205 Reset Content
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in a new issue