request 0.1.3.0 → 0.2.0.0
raw patch · 2 files changed
+12/−2 lines, 2 files
Files
- request.cabal +1/−1
- src/Network/HTTP/Request.hs +11/−1
request.cabal view
@@ -1,5 +1,5 @@ name: request-version: 0.1.3.0+version: 0.2.0.0 -- synopsis: description: "HTTP client for haskell, inpired by requests and http-dispatch." homepage: https://github.com/aisk/request#readme
src/Network/HTTP/Request.hs view
@@ -43,7 +43,17 @@ | POST | PUT | TRACE- deriving (Eq, Show)+ | Method String++instance Show Method where+ show GET = "GET"+ show HEAD = "HEAD"+ show OPTIONS = "OPTIONS"+ show PATCH = "PATCH"+ show POST = "POST"+ show PUT = "PUT"+ show TRACE = "TRACE"+ show (Method method) = method data (S.IsString a) => Request a = Request { requestMethod :: Method