Skip to content

Commit

Permalink
Add HeadNoContent to Servant.API.Verbs (#1502)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
supersven committed Jan 6, 2022
1 parent 73c87bc commit c388c5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion servant/src/Servant/API/Verbs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ type DeleteNoContent = NoContentVerb 'DELETE
type PatchNoContent = NoContentVerb 'PATCH
-- | 'PUT' with 204 status code.
type PutNoContent = NoContentVerb 'PUT

-- | 'HEAD' with 204 status code.
type HeadNoContent = NoContentVerb 'HEAD

-- ** 205 Reset Content
--
Expand Down

0 comments on commit c388c5e

Please sign in to comment.