purescript-httpurple/test/Test/HTTPure
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
..
BodySpec.purs Add HTTP version (#137) 2019-04-25 10:13:04 -07:00
HeadersSpec.purs Use CaseInsensitiveString for Headers (#138) 2019-04-25 20:06:15 -07:00
IntegrationSpec.purs Make server cancelable and clean up examples and tests (#112) 2018-09-02 14:05:54 -07:00
LookupSpec.purs Consolidate APIs (#104) 2018-08-26 21:54:04 -07:00
MethodSpec.purs Add HTTP version (#137) 2019-04-25 10:13:04 -07:00
PathSpec.purs Add HTTP version (#137) 2019-04-25 10:13:04 -07:00
QuerySpec.purs Add HTTP version (#137) 2019-04-25 10:13:04 -07:00
RequestSpec.purs Add HTTP version (#137) 2019-04-25 10:13:04 -07:00
ResponseSpec.purs Chunked responses (#107) 2018-08-30 15:01:49 -07:00
ServerSpec.purs Respond with 500 Internal Server Error upon unhandled exceptions (#123) 2018-10-09 10:37:23 -07:00
StatusSpec.purs PureScript 0.12 support (#89) 2018-07-08 16:16:48 -07:00
TestHelpers.js Add HTTP version (#137) 2019-04-25 10:13:04 -07:00
TestHelpers.purs Add HTTP version (#137) 2019-04-25 10:13:04 -07:00
VersionSpec.purs Add HTTP version (#137) 2019-04-25 10:13:04 -07:00