Commit graph

1436 commits

Author SHA1 Message Date
Julian Arni
4f0d0b5093 Merge pull request #24 from anchor/patch-method
Add PATCH method
2015-02-14 18:13:26 +01:00
Julian Arni
648dc2f2fb Merge pull request #11 from anchor/patch-method
Patch method
2015-02-15 00:59:19 +08:00
Timo von Holtz
9a3c268be4 Add PATCH method 2015-02-10 11:33:41 +11:00
Timo von Holtz
71011745c0 Actually include the Patch.hs 2015-02-10 11:28:16 +11:00
Timo von Holtz
59a20b2974 Add PATCH method 2015-02-10 11:18:13 +11:00
Alp Mestanogullari
a7749a04b7 Merge pull request #6 from zerobuzz/nothing-really
Whitespace.
2015-02-09 11:28:07 +00:00
Christian Marie
a008e08dd1 Add initial mockup of general extra info API 2015-02-07 15:23:54 +11: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
Christian Marie
b27e256b41 Merge pull request #10 from anchor/wip-new-safe-links
New safe link API
2015-01-31 10:14:59 +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
Christian Marie
2ea8a48eff Merge pull request #9 from anchor/wip-notes
Add DocIntro and DocNote types to allow extra docs
2015-01-30 16:06:31 +11:00
Christian Marie
dd34ba0d92 Merge remote-tracking branch 'upstream/master' into wip-notes
Conflicts:
	src/Servant/Docs.hs
2015-01-30 16:02:44 +11:00
Julian Arni
b6a6505ecf Merge pull request #22 from anchor/arbitrary-routemismatch
Add RouteMismatch constructor for arbitrary HTTP response code
2015-01-30 05:50:30 +01:00
Christian Marie
b85a90c4f5 Add docsWithIntros function, update documentation 2015-01-30 15:47:26 +11:00
Thomas Sutton
6b55bf583d Add RouteMismatch constructor for arbitrary HTTP response code 2015-01-30 11:36:01 +11:00
Christian Marie
d03788ee21 Flip safeLink and rename link to toLink 2015-01-30 11:03:48 +11:00
Christian Marie
12cf4e02ab Remove un-needed dependencies. 2015-01-29 17:55:57 +11:00
Christian Marie
36268030b5 Correct typo in Util.Links documentation 2015-01-29 17:45:47 +11:00
Christian Marie
3a4471f211 Remove Monoid instance of Link and simplify Utils.Links documentation 2015-01-29 15:03:33 +11:00
Christian Marie
c1ab495a7a Utils.Link documentation cleanup 2015-01-29 11:28:01 +11:00
Christian Marie
2a91686195 Tweak .travis.yml 2015-01-29 11:18:16 +11:00
Christian Marie
12d0d0a6e7 Documentation improvements and minor cleanup 2015-01-29 10:39:02 +11:00
Christian Marie
70ffe01f9a Rewrite Utils.Links to export a nicer API.
* Add support for parameters.
* Clean up type level magic, invalid links no longer have a type.
* Proxies are now used to be consistent with the rest of the servant ecosystem.
2015-01-29 10:07:01 +11:00
Timo von Holtz
015a6feeea Travis: use current HEAD of servant-server 2015-01-28 21:00:28 +11:00
Christian Marie
6785717d8c Add constrainty Link implementation. 2015-01-27 16:06:21 +11:00
Julian Arni
ec3bebee69 Merge pull request #7 from dlarsson/master
Support for matrix parameters
2015-01-27 03:16:30 +01:00
Christian Marie
7336ecbaeb Export open type family IsElem' to allow custom API types in Links.
Also:
* Export unLink function to be able to use the contents of a Link
* Add Raw to the isLink'' family.
2015-01-23 17:44:06 +11:00
Christian Marie
aa64d7a0bf Add DocIntro and DocNote types to allow extra docs
This commit provides a way for a user to add information to either the
beginning of the output, and for a HasDoc instance to add extra sections to an
endpoint.

See example/greet.hs for usage of the Intro type.
2015-01-23 14:31:45 +11:00
Timo von Holtz
4228447e91 Add TLS support 2015-01-23 09:18:13 +11:00
Alp Mestanogullari
f62bb79da1 Merge pull request #6 from rtrvrtg/wip-header-value-templates
Extend HeaderArg to support advanced HTTP Header handling
2015-01-22 02:01:11 +01:00
Geoffrey Roberts
d7f9e30fc8 Add a test to explicitly cover header variable template replacement 2015-01-22 11:41:06 +11:00
Geoffrey Roberts
8aa5ce504e Switched again to Text because it made more sense given the dependency structure 2015-01-22 11:33:19 +11:00
Geoffrey Roberts
21e9c9f5c9 Switched out MissingH for an implementation using split 2015-01-22 11:24:36 +11:00
Geoffrey Roberts
745dbd09a9 Actually sanitise function names and handle X-Custom headers 2015-01-21 19:32:06 +11:00
Geoffrey Roberts
158eab5157 Changed template for ReplaceHeaderArg. Got tests working. 2015-01-21 18:47:23 +11:00
Geoffrey Roberts
e16f90f107 Extended HeaderArg to allow header arguments to replace the contents of a template, allowing specially composed headers to create specially formatted headers 2015-01-21 18:27:25 +11:00
Julian Arni
0bb35b8571 Merge pull request #20 from paf31/errors
Return JSON error messages in response
2015-01-21 10:00:22 +08:00
Phil Freeman
56791952b8 Return JSON error messages in response 2015-01-19 19:12:08 -08:00
Julian Arni
f04bd3e24b Merge pull request #18 from haskell-servant/jkarni/fix-travis
Make travis clone master servant.
2015-01-16 11:01:31 +01:00
Julian K. Arni
7736339328 Make travis clone master servant. 2015-01-16 10:53:37 +01:00
Sönke Hahn
350e05e035 Merge pull request #17 from haskell-servant/fix_1
cabal: added lower bound for wai-app-static
2015-01-16 13:03:57 +08:00
Sönke Hahn
1148e21377 cabal: added lower bound for wai-app-static
Fixes #1.
2015-01-16 12:52:11 +08:00
Julian Arni
83e46f41ef Merge pull request #2 from dlarsson/master
Support for matrix parameters
2015-01-15 12:40:40 +01:00
Julian Arni
420fc2a842 Merge pull request #16 from dlarsson/matrix
Added support for matrix parameters.
2015-01-15 12:27:35 +01:00
Daniel Larsson
294eb3b76f Added changelog text 2015-01-15 12:14:11 +01:00
Daniel Larsson
b18f27df7a Added support for Matrix parameters 2015-01-15 12:10:21 +01:00