Skip to content

Commit

Permalink
Add PATCH request method
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wiegley committed Dec 25, 2012
1 parent 7ce1ae9 commit ccb7f92
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Network/HTTP/Types/Method.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Network.HTTP.Types.Method
, methodPost
, methodHead
, methodPut
, methodPatch
, methodDelete
, methodTrace
, methodConnect
Expand All @@ -25,9 +26,10 @@ import qualified Data.ByteString.Char8 as B8
type Method = B.ByteString

-- | HTTP Method constants.
methodGet, methodPost, methodHead, methodPut, methodDelete, methodTrace, methodConnect, methodOptions :: Method
methodGet, methodPost, methodHead, methodPut, methodPatch, methodDelete, methodTrace, methodConnect, methodOptions :: Method
methodGet = renderStdMethod GET
methodPost = renderStdMethod POST
methodPatch = renderStdMethod PATCH
methodHead = renderStdMethod HEAD
methodPut = renderStdMethod PUT
methodDelete = renderStdMethod DELETE
Expand All @@ -39,8 +41,9 @@ methodOptions = renderStdMethod OPTIONS
data StdMethod
= GET
| POST
| HEAD
| HEAD
| PUT
| PATCH
| DELETE
| TRACE
| CONNECT
Expand Down

0 comments on commit ccb7f92

Please sign in to comment.