Julian K. Arni
45f35852f8
prepare merge
2015-04-20 11:15:58 +02:00
Julian K. Arni
d7fcf2b19b
Fix missing canonicalize changes
2015-04-19 18:31:23 +02:00
Alp Mestanogullari
34f1715666
canonicalize api type before generating client functions, to flatten out all the client functions, distributing arguments properly: Client (a :> (b :<|> c)) = Client (a :> b) :<|> Client (a :> c)
2015-04-19 18:08:26 +02:00
Julian K. Arni
3802ef5447
Add patch method, and make () response expect no content
2015-03-26 14:34:38 +01:00
Alp Mestanogullari
989849c8a1
Merge pull request #17 from haskell-servant/raw-fullresponse
...
Return complete `Response` in client for Raw endpoint
2015-03-26 12:55:07 +01:00
Mateusz Kowalczyk
d21f0bbbfc
Accept wider range of return codes
...
DELETE
201 doesn't make sense
I think we can get away with just 204 without 205 and 206
GET
206 should be handled by the lib itself (?) so we only add 203
Closes #20
2015-03-25 15:39:55 +00:00
Timo von Holtz
ecb8627433
Return complete response in Raw endpoint
2015-03-16 11:12:11 +11:00
Timo von Holtz
74b5bc400c
Allow more response codes without failing
2015-03-09 17:04:31 +11:00
Timo von Holtz
ba46ecc0a9
Use ServantError
to report Errors instead of String
2015-03-09 14:42:07 +11:00
Timo von Holtz
40a941e0e3
Don't ignore the content-type in ReqBody
2015-02-25 09:30:31 +11:00
Timo von Holtz
48030a6a1b
Simple design for client with content-types
2015-02-17 17:17:10 +11:00
Timo von Holtz
db2c5a42b2
Expose content type in response.
2015-02-17 10:32:15 +11:00
Timo von Holtz
7a1eac4e86
Correctly set the content type for ReqBody
2015-02-17 10:05:39 +11:00
Timo von Holtz
56e68bc737
Don't try to parse the empty response body for Delete
2015-01-30 17:05:01 +11:00
Daniel Larsson
8aba885488
Added support for matrix parameters.
2015-01-01 23:43:29 +01:00
Daniel Larsson
83afdcb96b
Declared query string parameters are always sent in requests, even when no value is assigned to them (?name). The server handles a missing query parameter, and a query parameter with no value the same, but to be consistent with the documentation ("If you give Nothing, nothing will be added to the query string.") I made a small change to avoid sending empty query parameters. Also the value and req' parameters were flipped in the lambda in the QueryParams case.
2015-01-01 15:14:07 +01:00
Alp Mestanogullari
2ecc6124b0
add HasClient instance for Header
2014-12-08 12:52:30 +01:00
Alp Mestanogullari
530797eb42
clarify haddocks for HasClient
2014-12-01 13:41:12 +01:00
Alp Mestanogullari
d93e4620d4
first shot at splitting servant into servant, servant-client and servant-docs
2014-11-27 18:28:01 +01:00