Commit Graph

29 Commits

Author SHA1 Message Date
Théophile Choutri a975cfc361
Add details about AddHeaders instances (#1490)
* Add details about the instances of AddHeader

Also:

* Cleanup of extensions and imports
2021-11-30 23:52:06 +01:00
Paolo Capriotti 0f9cc7eeec
Add response header support to UVerb (#1420)
* Use type wrapped in Headers h to generate response

This avoids having to define MimeRender instances for Headers.
2021-06-10 17:10:50 +02:00
Jan Hrcek b9d8fbcdc1
Fix typos and grammar (#1304)
* Fix typos and grammar

* Remove redundant words, fix articles

* More language fixes

* More typo fixes and resolve TODO about missing links
2020-06-06 00:43:51 -04:00
Oleg Grenrus 4fab471c29 Refactor servant-client(-core)
- Rename GenResponse to ResponseF (analogous to RequestF)
- add NFData Headers
- Make Request and Response bodies be SourceIO,
  i.e. move conversions into specific implementations
2019-02-06 12:15:20 +02:00
Oleg Grenrus 21af9a4051 Tweak lookupResponseHeader docs 2018-11-08 18:36:31 +02:00
Dan Burton e604b930dc
Add lookupResponseHeader 2018-10-28 01:36:40 -04:00
Domen Kožar c7f616ea2d
ResponseHeaders: export GetHeaders' 2018-10-14 12:15:41 +01:00
Oleg Grenrus cfade67c2f Cleanup pre-GHC-8.0 stuff 2018-07-11 01:39:38 +03:00
Oleg Grenrus be42f3d608 Implement GetHeaders instances without overlapping 2018-06-08 15:10:38 +03:00
Oleg Grenrus 8058891299 Reformat servant 2018-03-11 17:58:31 +02:00
Oleg Grenrus 22ec980f6e Update hlint.yaml and fix some hints in servant and servant-server 2018-01-26 17:38:57 +02:00
Oleg Grenrus bc3f61d615 Add Servant.API.Modifiers to servant
Changes Header, ReqBody and QueryParam to take a modifier list.

Resolves https://github.com/haskell-servant/servant/issues/856

ResponseHeader story turns to be somewhat ugly, but it can be made
elegant when https://github.com/haskell-servant/servant/issues/841 is
implemnted, then we can omit HList aka Header Heterogenous List
implementation.

- servant-server changes:

  Writing server side intepretations is quite simple using
  `unfoldRequestArgument`, which makes Header and QueryParam look quite
  the same.

  `ReqBody` cannot be easily made optional with current design (what that
  would mean: No Content-Type Header?), so that dimensions isn't used
  there.

- Add HasLink for all the rest ComprehensiveAPI combinators
- Add 'tricky' Header', QueryParam' endpoints to ComprehensiveAPI
- servant-docs: Quick'n'dirty implementation. Don't use modifiers information (yet).
2018-01-25 09:10:11 +02:00
Al Zohali b806339200 fix minor typos 2017-03-19 23:49:52 +03:00
Julian K. Arni 9ad2efe862 Review fixes 2016-10-24 17:15:29 +02:00
Julian K. Arni ed82056052 Add noHeader function.
Which allows not adding a header where a signature declares one, making
    response headers optional.
2016-10-21 14:36:14 +02:00
Alex Mason dbab31508e Comma style is hard 2016-09-02 23:59:36 +10:00
Alex Mason a991cbe77c Revert version bump, update changelog 2016-09-02 23:53:18 +10:00
Alex Mason 9b5a564f3c Remove dependency on bytestring-conversion 2016-09-02 23:14:45 +10:00
Alex Mason a1b23018f9 Replace use of ToByteString with HttpApiData for GetHeaders, fixes servant/#581
* Version bump because this changes the API for GetHeaders
2016-09-02 19:47:32 +10:00
Justin Sermeno e1463cd02d remove response header contains check 2016-04-20 18:37:49 -05:00
Denis Redozubov a22a981190 update base-compat imports 2016-03-13 12:44:12 +03:00
Denis Redozubov c528eb24ca use base-compat 2016-03-13 12:42:41 +03:00
Julian K. Arni 79d4f944a4 less OverlappingInstances noise 2016-01-04 13:09:11 -05:00
Julian K. Arni 978c890061 Pattern match fix 2015-05-02 12:39:02 +02:00
Julian K. Arni 12df2cdca5 Export fix 2015-05-02 12:16:32 +02:00
Julian K. Arni a2b8d6ae58 Better servant-server left 2015-05-02 03:38:53 +01:00
Julian K. Arni 5531ada22b Headers for all 2015-05-02 02:21:03 +01:00
Julian K. Arni f82ca76f7d 7.10 changes 2015-04-22 12:27:18 +02:00
Julian K. Arni 90ad8248d7 prepare merge 2015-04-20 11:21:21 +02:00