Julian K. Arni
e8b9814168
Documentation and Reexport module
2017-09-14 09:54:13 -04:00
Julian K. Arni
ffbfa42a14
Tests now pass
2017-09-14 09:54:13 -04:00
Julian K. Arni
5bd9d253ce
Almost compiling test
2017-09-14 09:54:13 -04:00
Julian K. Arni
75ea91c34d
Fix some tests
2017-09-14 09:54:13 -04:00
Arnaud Bailly
b592b51ed8
provide convenience functions for ClientM-based clients
2017-09-14 09:54:13 -04:00
Arnaud Bailly
5e2c48b08f
expose client runner as a typeclass with base implementation #798
...
* defined a typeclass abstracting the execution of a query
* provide ClientM-based instances for this typeclass
* changed signature of client and clientWithRoute to add proxy for
context
* updated tests
2017-09-14 09:54:13 -04:00
Arnaud Bailly
2665693529
extract module for http-client
2017-09-14 09:54:13 -04:00
David Turner
0bbc4f98a4
Rename EmptyAPIClient to EmptyClient
2017-05-16 16:00:15 +00:00
David Turner
f5d9983381
Rename emptyAPIServer to emptyServer
2017-05-16 15:59:41 +00:00
David Turner
e60bdadead
Demonstrate that a client for EmptyAPI pattern-matches EmptyAPIClient
2017-05-16 10:21:37 +00:00
Alexander Vieth
6389134423
Change to ServerT Raw m = Tagged m Application
...
For uniformity of Enter.
Previously, `ServerT Raw m ~ Application`. Seems reasonable, but has the
unfortunate consequence of making `Enter` useless for `Raw` routes.
With this change `Tagged m Application` is retagged by `Enter`.
2017-05-15 19:54:43 +03:00
Stevan Andjelkovic
b8de9c8527
Include the request that failed in FailureResponse.
2017-05-05 15:31:38 +02:00
Catherine Galkina
af1b267726
Fix servant-client tests after rebase
2017-01-17 16:34:30 +03:00
Catherine Galkina
3cc667892c
Add tests for Servant.Client.Generic
2017-01-17 16:29:24 +03:00
Oleg Grenrus
5168157757
Make Handler a newtype
2017-01-16 12:18:49 +02:00
Sönke Hahn
79f53cef3e
servant-client: use base-compat in order to use less CPP
2016-10-17 11:52:40 -04:00
Julian K. Arni
501212e6b9
Review fixes
2016-09-12 20:40:03 -03:00
Julian K. Arni
0870b3b2f5
Remove FromFormUrlEncoded and ToFormUrlEncoded.
...
In favor of FromForm and ToForm from the new version of http-api-data.
2016-09-12 18:34:18 -03:00
Christian Klinger
7a7f7d7cf5
changed ClientM to be a Reader of ClientEnv
2016-09-08 00:17:13 +02:00
Jonathan Lange
d945c99f82
Test whole list in CaptureAll client tests
2016-07-11 14:47:05 +01:00
Jonathan Lange
7fb9a95711
servant-client support for CaptureAll
2016-07-11 14:46:31 +01: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 K. Arni
211254512e
Re-export Application.
2016-05-11 12:17:36 +02:00
Oleg Grenrus
008f2434ee
Add -Wno-redundant-constraints
2016-05-10 19:09:59 +03:00
Sönke Hahn
b26bbfccda
travis: enable -Wall -Werror
2016-04-21 13:06:10 +08:00
Luke Cycon
21546991af
Introduce a Handler
alias for ExceptT ServantErr IO
...
Fixes #434
2016-04-11 22:27:29 -07:00
mbg
9e1ba9221d
Manager and BaseUrl are now explicit parameters of all client functions, instead of ReaderTs
2016-03-30 22:41:39 +01:00
mbg
41129e98b3
Removed GetNth and GetLast type classes
2016-03-28 18:01:53 +01:00
mbg
89b0758dc8
Changed servant-client tests to reflect the changes to the client function
2016-03-28 14:52:33 +01:00
aaron levin
b3af5a8d95
Move general authentication to Experimental module
...
Removes the UndecidableInstances extension in the module containing the
HasServer instances.
2016-03-09 22:30:34 +01:00
aaron levin
23da4879ef
Add general auth support to servant-client
2016-03-09 22:30:34 +01:00
aaron levin
546adc391a
basic-auth: config -> context
2016-03-08 23:28:27 +01:00
aaron levin
1e703be15f
replace serve with serveWithConfig
2016-03-08 23:13:05 +01:00
aaron levin
d989d15e4c
Add basic-auth support to servant-client
2016-03-08 23:13:05 +01:00
Julian K. Arni
f137972e5d
Add 'serveWithConfig'.
...
And keep the old signature for 'serve'
2016-02-18 16:36:24 +01:00
Sönke Hahn
df09f8616e
config: remove HasConfig and make HasServer take config
as a parameter
2016-01-21 17:58:50 +01:00
Sönke Hahn
67315c4487
server: added Config machinery
2016-01-21 17:55:02 +01:00
Sönke Hahn
ac930ef198
ComprehensiveAPI: add some comments (and minor tweaks)
2016-01-18 20:06:45 +01:00
Sönke Hahn
e5974ec94d
add ComprehensiveAPI to test whether we're missing instances
...
Some of the combinators are commented atm, because we *are* missing combinators.
2016-01-18 12:28:29 +01:00
Julian K. Arni
783a849c67
Make NoContent still take an arg.
...
For consistency with other combinators, and to make using headers
easier.
2016-01-07 14:30:08 +01:00
Julian K. Arni
cda8bcf17c
Simplify verb combinators.
...
Create a single 'Verb' combinator with parameters for status code and
method. Make existing combinators type synonyms of 'Verb'.
2016-01-07 13:47:07 +01:00
Julian K. Arni
79d4f944a4
less OverlappingInstances noise
2016-01-04 13:09:11 -05:00
Julian K. Arni
40686be83a
Rebase fixes
2015-10-13 21:45:22 +02:00
Julian K. Arni
2a894d861c
-Wall fixes
2015-10-13 21:38:13 +02:00
Julian K. Arni
afc76b8f6c
Remove MatrixParam.
...
In servant, servant-server, and servant-client.
2015-10-13 21:37:07 +02:00
Julian K. Arni
d9594e24b4
Rebase fix.
2015-10-11 21:47:31 +02:00
Julian K. Arni
c2a06bc090
More generous acceptable status codes for servant-client
2015-10-11 21:12:05 +02:00
Arian van Putten
a08e644333
Add OVERLAPPING pragma to instances in ClientSpec
2015-10-09 00:48:03 +02:00
Julian K. Arni
7529d7f776
getLast (and last missing servant-client test)
2015-10-08 12:09:23 +02:00
Julian K. Arni
59d8824888
remove 'hspec' call in servant-client tests
2015-10-07 17:52:23 +02:00