Commit graph

60 commits

Author SHA1 Message Date
Julian K. Arni
45f35852f8 prepare merge 2015-04-20 11:15:58 +02:00
Alp Mestanogullari
0173087166 Merge pull request #25 from haskell-servant/canonical-types-rebased
Canonical types rebased
2015-04-20 09:37:40 +03:00
Julian K. Arni
d7fcf2b19b Fix missing canonicalize changes 2015-04-19 18:31:23 +02:00
Alp Mestanogullari
eae2f5f282 add a changelog entry for canonicalize 2015-04-19 18:08:40 +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 Arni
14f63520d0 Merge pull request #23 from haskell-servant/jkarni/patch-etc
Add patch method, and make () response expect no content
2015-03-26 19:17:19 +01:00
Julian K. Arni
3802ef5447 Add patch method, and make () response expect no content 2015-03-26 14:34:38 +01:00
Alp Mestanogullari
9a4cfd64c5 changelog entry for Raw-client-returning-whole-response commit 2015-03-26 12:56:54 +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
Julian Arni
ac733be7f2 Merge pull request #22 from Fuuzetsu/accepted-codes
Accept wider range of return codes
2015-03-25 18:50:08 +01:00
Julian Arni
685eec0773 Merge pull request #21 from Fuuzetsu/ghci-file
Add .ghci file
2015-03-25 17:10:48 +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
Mateusz Kowalczyk
b0056294cc Add .ghci file 2015-03-25 15:36:08 +00:00
Timo von Holtz
ecb8627433 Return complete response in Raw endpoint 2015-03-16 11:12:11 +11:00
Alp Mestanogullari
c08baabfdf Merge pull request #14 from haskell-servant/proper-errors
Use `ServantError` to report Errors instead of `String`
2015-03-09 09:02:59 +01:00
Timo von Holtz
74b5bc400c Allow more response codes without failing 2015-03-09 17:04:31 +11:00
Timo von Holtz
07d84d019c Tests for all reported errors 2015-03-09 14:42:07 +11:00
Timo von Holtz
23311a8f5d Some tests for errors 2015-03-09 14:42:07 +11:00
Timo von Holtz
fe6962d0b9 Adjust existing tests for change in error type 2015-03-09 14:42:07 +11:00
Timo von Holtz
8015906b53 Record accessors for ServantError 2015-03-09 14:42:07 +11:00
Timo von Holtz
ba46ecc0a9 Use ServantError to report Errors instead of String 2015-03-09 14:42:07 +11:00
Julian Arni
83aff1495b Merge pull request #13 from haskell-servant/manager-ioref
Use an `IORef` rather than a `MVar`.
2015-03-09 00:23:36 +01:00
Timo von Holtz
449b3758f0 Changelog for MVar-change 2015-03-05 10:36:34 +11:00
Timo von Holtz
aeb1136658 Use an IORef rather than a MVar.
The job of a manager is to synchronize threads, so it is not necessary to block.
2015-03-05 09:49:15 +11:00
Alp Mestanogullari
1af0d7b5ab tentative changelog 2015-03-04 01:59:17 +01:00
Julian Arni
33279c525d Merge pull request #11 from anchor/content-types
Content types
2015-02-25 13:25:10 +01:00
Timo von Holtz
da0e1ca871 Extend tests and clean up 2015-02-25 09:56:06 +11:00
Timo von Holtz
40a941e0e3 Don't ignore the content-type in ReqBody 2015-02-25 09:30:31 +11:00
Julian K. Arni
fa0ef86c98 Enable coveralls 2015-02-19 20:48:52 +01:00
Timo von Holtz
48030a6a1b Simple design for client with content-types 2015-02-17 17:17:10 +11:00
Timo von Holtz
6c99dfcb6c Cleanup 2015-02-17 13:50:50 +11:00
Timo von Holtz
a23204e134 Use renderHeader to render the Accept header 2015-02-17 12:23:03 +11:00
Timo von Holtz
098b503625 Don't send an Accept header if the list of accepted types is empty 2015-02-17 11:56:15 +11:00
Timo von Holtz
c444ec8374 Send the correct Accept header 2015-02-17 11:51:59 +11:00
Timo von Holtz
e6e67b275b Check for correct content-type in result. 2015-02-17 10:55:35 +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
Julian Arni
8ef4b5dbcc Merge pull request #9 from haskell-servant/jkarni/fix-travis
Use 'master' servant and servant-server for travis.
2015-02-15 08:46:06 +01:00
Julian K. Arni
a723a0f8d5 Use 'master' servant and servant-server for travis. 2015-02-15 08:37:52 +01:00
Alp Mestanogullari
a7749a04b7 Merge pull request #6 from zerobuzz/nothing-really
Whitespace.
2015-02-09 11:28:07 +00:00
Matthias Fischmann
3b48ca7d43 Cleanup. 2015-02-06 09:34:59 +01:00
Christian Marie
0edb828c1d Fix tests -- Capture cannot be empty 2015-02-02 13:35:10 +11:00
Christian Marie
cdbe95bcdf Merge branch 'tvh-support-tls' 2015-02-02 12:39:55 +11:00
Christian Marie
6797a58f65 Merge branch 'tvh-delete-empty-body' 2015-02-02 12:37:04 +11:00
Timo von Holtz
e5db50917b Add test for 'Delete' 2015-02-02 09:33:05 +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
Timo von Holtz
015a6feeea Travis: use current HEAD of servant-server 2015-01-28 21:00:28 +11:00
Timo von Holtz
4228447e91 Add TLS support 2015-01-23 09:18:13 +11:00
Julian Arni
83e46f41ef Merge pull request #2 from dlarsson/master
Support for matrix parameters
2015-01-15 12:40:40 +01:00
Daniel Larsson
8aba885488 Added support for matrix parameters. 2015-01-01 23:43:29 +01:00