git.iko.soy/typeable/servant
on master help sign in
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)

commitc388c5e82c3df5d8ae63b523fea012c23e37410a authorSven Tennie <sven.tennie@gmail.com> dateThu 6 Jan 2022, 13:02 (5 years ago) parent73c87bc
1 file changed+2−1
servant/src/Servant/API/Verbs.hs+2−1
servant/src/Servant/API/Verbs.hs+2−1
@@ -128,7 +128,8 @@ type DeleteNoContent = NoContentVerb 'DELETE
128128type PatchNoContent = NoContentVerb 'PATCH
129129-- | 'PUT' with 204 status code.
130130type PutNoContent = NoContentVerb 'PUT
131−
131+-- | 'HEAD' with 204 status code.
132+type HeadNoContent = NoContentVerb 'HEAD
132133
133134-- ** 205 Reset Content
134135--