Skip to content

Commit

Permalink
Make response helpers API consistent (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
cprussin authored Sep 29, 2017
1 parent f4599b2 commit 8760334
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 73 deletions.
2 changes: 1 addition & 1 deletion docs/Examples/Middleware/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ headerMiddleware :: forall e.
HTTPure.ResponseM e
headerMiddleware router request = do
response <- router request
HTTPure.response response.status (header <> response.headers) response.body
HTTPure.response' response.status (header <> response.headers) response.body
where
header = HTTPure.headers [ Tuple.Tuple "X-Middleware" "middleware" ]

Expand Down
1 change: 1 addition & 0 deletions src/HTTPure.purs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import HTTPure.Request (Request)
import HTTPure.Response
( ResponseM
, response, response'
, emptyResponse, emptyResponse'

-- 1xx
, continue, continue'
Expand Down
Loading

0 comments on commit 8760334

Please sign in to comment.