(cdep)illabout
2b737e4c1c
Accept multiple content-types in client.
...
When defining a route like the following,
```
type API = Get '[JSON, PlainText] Int
```
servant-client is only able to receive responses with the content type
that comes first in the list. In this example, it will only be able to
receive `application/json` responses.
This PR changes it so that servant-client will accept _any_ content-type
in the list.
In the example above, it will accept responses with a content type of
`application/json` or `text/plain`.
2016-07-31 13:38:50 +09:00
Oleg Grenrus
197ed0548a
Use parseRequest
2016-07-18 14:40:05 +02:00
Sönke Hahn
ecfa78d222
doc: add a tip about how to serve on /
2016-07-15 19:31:16 +02:00
Arian van Putten
a844b7c297
Merge pull request #519 from jml/capture-all-take-2
...
CaptureAll combinator - take #2
2016-07-11 17:03:01 +02:00
Arian van Putten
c5dcff12d0
Add dummy docs instancE
2016-07-11 14:47:05 +01:00
Arian van Putten
b714640110
Add CaptureAll to ComprehensiveAPI
2016-07-11 14:47:05 +01:00
Jonathan Lange
d945c99f82
Test whole list in CaptureAll client tests
2016-07-11 14:47:05 +01:00
Jonathan Lange
ed702f5927
servant-docs support for CaptureAll
2016-07-11 14:47:05 +01:00
Jonathan Lange
cda31614bf
servant-foreign support for CaptureAll
2016-07-11 14:47:05 +01:00
Jonathan Lange
c79a254b36
servant-server support for CaptureAll
2016-07-11 14:46:31 +01:00
Jonathan Lange
7fb9a95711
servant-client support for CaptureAll
2016-07-11 14:46:31 +01:00
Jonathan Lange
0d8a5b5aff
servant-mock support for CaptureAll
2016-07-11 14:46:31 +01:00
Jonathan Lange
a616a8d689
Add CaptureAll to the API definitions
2016-07-11 14:46:31 +01:00
Sönke Hahn
8eb412ff23
bump version
2016-07-10 17:21:36 +02:00
Arian van Putten
d782ef19f7
Fix a warning that the test suite gave
2016-07-10 16:59:54 +02:00
Arian van Putten
05379ed7e3
Replace all occurances of () with NoContent
...
We use NoContent to signify an empty response nowadays. This commit
replaces all occurences of () with NoContent so that all packages use
the new semantics.
2016-07-10 16:58:59 +02:00
Sönke Hahn
d45c7c5897
support http-client-0.5
2016-07-09 18:36:00 +02:00
Oleg Grenrus
a7a3294752
Add bounds to servant, servant-server and servant-clients
...
(cherry picked from commit a0d5ed9aea
)
2016-07-09 18:33:19 +02:00
Julian Arni
af7391c7a9
Merge pull request #541 from mrkkrp/add-has-link-instance-for-basic-auth
...
Add ‘HasLink’ instance for ‘BasicAuth’
2016-07-07 18:23:11 -03:00
mrkkrp
9cabc8d320
Add ‘HasLink’ instance for ‘BasicAuth’
...
Close #539 .
2016-07-07 23:42:37 +03:00
Christian Marie
f0d14a7d85
Merge pull request #532 from phadej/patch-1
...
Add upper bounds http-client <0.5
2016-07-06 21:14:28 +10:00
Oleg Grenrus
dc9afe6405
Add upper bounds http-client <0.5
2016-07-05 12:27:30 +03:00
Sönke Hahn
5effdfdbbb
Rename type variables 'layout' and 'sublayout' to 'api'
2016-07-03 22:46:46 +08:00
Julian K. Arni
023368c396
CPP deprecated parseUrl function.
2016-07-03 22:43:52 +08:00
Sönke Hahn
0f1e5475b9
doc: add two more examples for servant projects
2016-07-03 11:53:20 +08:00
Julian Arni
2d8fa20901
Merge pull request #526 from ehamberg/mimerender-doc-fix
...
Fix example `MimeRender` instance
2016-07-01 13:45:03 +02:00
Erlend Hamberg
d81e15b5e5
Fix example MimeRender
instance
...
The `MimeRender` instance in the documentation was incomplete and expected one more argument.
2016-06-14 14:20:35 +02:00
Sönke Hahn
3c27ff5a32
added test script for stack files (and fixed stack for ghc-7.8)
2016-05-29 00:03:46 +08:00
Oleg Grenrus
778ec34156
Use nightly-2016-05-27 for in stack-ghc-8.0.1.yaml
2016-05-28 23:36:41 +08:00
Christian Kjær
323883556c
Update stack.yaml to LTS 6.0
...
All the missing extra-deps are now on Stackage, and the ones that were
forced to a later version have also been updated, so the LTS should suffice.
2016-05-28 01:03:48 +02:00
Julian Arni
46c8b26c92
Merge pull request #518 from haskell-servant/jkarni/fix-client-readme
...
Remove host param from servant-client README.
2016-05-26 13:06:55 +02:00
Julian K. Arni
bd3670f54d
Remove host param from servant-client README.
2016-05-25 17:38:25 +02:00
Arian van Putten
6665f77545
Merge pull request #515 from league/patch-1
...
Fix minor typo in tutorial
2016-05-25 09:36:25 +02:00
Christopher League
69d3e7355a
Fix minor typo in tutorial
2016-05-24 23:11:54 -04:00
Sönke Hahn
6cc12807c5
Merge pull request #513 from haskell-servant/jkarni/source-repo-cabal
...
Add source-repo and bug report
2016-05-23 18:49:11 +08:00
Oleg Grenrus
73bc0e3c1d
Remove servant-blaze and servant-lucid
2016-05-13 14:38:00 +03:00
Julian K. Arni
ccde5b0898
Add source-repo and bug report
...
For servant-foreign and servant-mock.
2016-05-13 12:45:30 +02:00
Julian Arni
461d43693d
Merge pull request #511 from phadej/remove-servant-cassava
...
Remove servant-cassava, moved to own repository
2016-05-13 12:43:00 +02:00
Oleg Grenrus
5a3b944067
Remove servant-cassava, moved to own repository
2016-05-13 13:00:32 +03:00
Julian Arni
ea36656dcd
Merge pull request #505 from haskell-servant/jkarni/reexport-application
...
Re-export Application.
2016-05-12 10:38:46 +02:00
Julian Arni
ff40b327bc
Merge pull request #504 from haskell-servant/jkarni/doc-fixes
...
Doc fixes
2016-05-12 09:53:35 +02:00
Julian K. Arni
211254512e
Re-export Application.
2016-05-11 12:17:36 +02:00
Julian K. Arni
aed6f7b910
Review fix
2016-05-11 10:17:24 +02:00
Sönke Hahn
d8a4cce691
version bump
2016-05-11 12:09:25 +08:00
Sönke Hahn
5579c21050
added changelog entries for 0.7.1
2016-05-11 12:09:25 +08:00
Sönke Hahn
ff4fb00f76
fix haddocks for Servant.API.Header ( fixes #491 )
2016-05-11 11:39:23 +08:00
Julian K. Arni
7174f5185d
Changelog updates for GHC 8.0 support.
2016-05-10 22:45:29 +02:00
Julian Arni
e3c5a78a45
Merge pull request #473 from phadej/travis-ghc-8.0
...
Add ghc-8.0.1 to travis matrix
2016-05-10 22:44:56 +02:00
Oleg Grenrus
a5cf899eb8
Add RouterSpec and StreamingSpec to servant-server.cabal
2016-05-10 19:14:04 +03:00
Oleg Grenrus
411dff06be
Add stack-ghc-8.0.1.yaml
2016-05-10 19:09:59 +03:00