Commit Graph

29 Commits

Author SHA1 Message Date
Petri Lehtinen
2673bd4b0b
Fix Content-Length for non-ASCII response bodies (#103)
Fixes #101
2018-08-25 07:49:28 +03:00
Petri Lehtinen
3e94aa6f9d Support binary response body (#99)
* Support binary response body

Fixes #98

* Address PR comments

- Expose data constructors for Body and use them for construction and
  pattern matching instead of various helpers

- Add an example and integration test for binary response

- Adjust the middleware example to be a bit nicer
2018-08-19 19:50:07 -07:00
Petri Lehtinen
9b1045886c
Re-export Query and Status (#97) 2018-08-08 07:32:53 +03:00
Petri Lehtinen
82402997a9 Re-export Response (#95)
Fixes #94
2018-07-10 23:07:34 -07:00
Connor Prussin
4c9acefaea
Set the Content-Length header based on the body contents (#93) 2018-07-10 22:23:28 -07:00
Petri Lehtinen
8badd62b3e PureScript 0.12 support (#89)
- Upgrade all dependencies
- Use Effect instead of Eff
- Use Foreign.Object instead of StrMap
- Use Effect.Ref instead of Control.Monad.ST
- Drop SecureServerM, it's the same as ServerM now
2018-07-08 16:16:48 -07:00
Connor Prussin
435003e2ab
Uprev dependencies 2018-02-24 18:51:07 -08:00
Connor Prussin
2649dce1b1
Fix docs again 2018-02-08 22:04:12 -08:00
Connor Prussin
b6f85c36ae
Fix docs 2018-02-08 21:57:37 -08:00
Connor Prussin
7c606aec49
Add custom HTTP configurations (#88) 2018-02-08 21:46:45 -08:00
Connor Prussin
133b98c9c6 Add helpers in Lookup and return a Maybe from lookup. (#84) 2017-10-23 18:50:27 -04:00
Connor Prussin
f38c5987ee Add fullPath function for inspecting and logging full resolved request path (#81) 2017-09-29 09:52:21 -07:00
Connor Prussin
8760334dcd Make response helpers API consistent (#79) 2017-09-29 07:49:46 -07:00
Connor Prussin
f4599b276b Add Headers.empty and Headers.header (#78) 2017-09-29 07:25:31 -07:00
Connor Prussin
48c529e9be Add middleware example (#73) 2017-09-27 12:34:00 -07:00
Connor Prussin
be173c68c2 Fix bad docs (#72) 2017-09-27 06:59:50 -07:00
Connor Prussin
d50be71fdc Make ResponseM async (#71) 2017-09-27 06:55:36 -07:00
Connor Prussin
d8eb77d666 Fix some documentation issues (#70) 2017-09-26 07:47:05 -07:00
Connor Prussin
0e71e9204a Add tooling for working with query parameters (#69) 2017-09-26 00:14:06 -07:00
Connor Prussin
278e110d59 Improve and simplify APIs (#68) 2017-09-25 23:08:07 -07:00
Connor Prussin
ea1bfbe182 Split out SecureServerM (#60) 2017-08-01 22:08:27 -07:00
Connor Prussin
61a66c324a Move to upstream purescript-node-http. (#59)
Move to upstream `purescript-node-http`
2017-08-01 22:08:27 -07:00
Connor Prussin
bd58415e3b Add SSL support (#55) 2017-08-01 22:08:27 -07:00
Connor Prussin
b88b905dad Code cleanup (#54) 2017-08-01 22:08:27 -07:00
Connor Prussin
14bb2caefc Fix broken docs (#52) 2017-08-01 22:08:27 -07:00
Connor Prussin
008924e861 Code cleanup (#50) 2017-07-20 15:48:59 -07:00
Connor Prussin
930130b624 Support all HTTP status codes (#49) 2017-07-19 11:59:55 -07:00
Connor Prussin
be26faa803 Add support for HEAD, CONNECT, OPTIONS, TRACE, and PATCH (#44) 2017-07-18 22:21:36 -07:00
Connor Prussin
a2d81b8606 Rename top level directories to be purescript standard 2017-07-17 23:29:51 -07:00