Commit Graph

17 Commits

Author SHA1 Message Date
Ping Chen
2a02d41954 Use Buffer.concat instead of string concatenation (#141)
* Bump dependency versions

* Use Buffer.concat, then convert to string on end
2019-06-03 10:43:10 -07:00
Hardy Jones
5d7c2c8bda Use CaseInsensitiveString for Headers (#138)
* v0.8.1

* Add failing tests for `Headers`

There's currently a bug with `Headers`:
if a header is created with uppercase characters, it can never be found.
The problem is that we only look for lowercase characters in the
`Lookup` instance for `Headers`.

* Convert `Headers` to use `CaseInsensitiveString`

In an effort to be more true to HTTP,
we make the header keys case-insensitive.
This fixes the issue of looking up a header where the casing is different,
Since `CaseInsensitiveString`s compare in a way that ignore casing.

The API for consumers for `Headers` stays the same,
but we get more correct code.
A win for all!
2019-04-25 20:06:15 -07:00
Connor Prussin
e64565e497
Add missing packages 2019-02-26 22:15:34 -08:00
Connor Prussin
1adbcecaaa
Chunked responses (#107)
* Chunked responses

* Remove Chunked newtype wrapper around Streams

* Use child process instead of ffi stream for chunked example

* Rename additionalHeaders to defaultHeaders

* Add History.md entry

* General cleanup
2018-08-30 15:01:49 -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
d50be71fdc Make ResponseM async (#71) 2017-09-27 06:55:36 -07:00
Connor Prussin
278e110d59 Improve and simplify APIs (#68) 2017-09-25 23:08:07 -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
2707ebee5c Add purescript-aff to runtime dependencies 2017-07-18 00:01:35 -07:00
Connor Prussin
a2d81b8606 Rename top level directories to be purescript standard 2017-07-17 23:29:51 -07:00
Connor Prussin
44df22e331 #22 add support for writing headers and status (#32)
* Add support for writing status code

* Add support for writing headers

* Code cleanup
2017-07-17 16:42:13 -07:00
Connor Prussin
35d3f13c3a Refactor to take advantage of pattern matching as routing mechanism (#24) 2017-07-13 23:28:57 -07:00
Connor Prussin
cfcd867729 Clean up file naming and directory structure (#21) 2017-07-10 12:06:14 -07:00
Connor Prussin
cfd0a4b243 Test all the things! (#20) 2017-07-10 03:17:13 -07:00
Connor Prussin
17d39fcdc2 Initial commit with basic functionality and library structure. 2017-05-25 12:12:29 -07:00