- Allow multi-value headers in request and response
- Breaking change: change the
Showinstance ofHTTPure.Headers.Headersso that it's used for debugging only. The previous behavior ofshowis now available withHTTPure.Headers.toString.
- Update for PureScript 0.15 (thanks @thomashoneyman and @sigma-andex)
- Cache Body
toBuffer/toStringresults (thanks @boygao1992)
- Support Duplex streams as responses (thanks @arthurxavierx)
- Ensure correct ordering on stream operations
- Add support for non-string requests (thanks @sigma-andex)
- Bump all dependency versions
- Modernize tooling
- Fix CI
- Don't use
echo -nin example since it's nonportable to OSX
- Dependency version bumps
- Fix
Utils.replacePlusto replace all occurrences (thanks @tmciver) - Update to purescript 0.14 (thanks @realvictorprm)
- Expose original request url as a part of
Request(thanks @paluh) - Bind to 0.0.0.0 instead of 'localhost'
- Add spago configuration (thanks @drewolson)
- Update response functions to return
MonadAff m => m Repsonse(thanks @drewolson)
- Provide utils from purescript-globals instead of FFI (thanks @nsaunders)
- Update the tests to work with purescript-spec v4.0.0 (thanks Dretch)
- Add some type declarations to get compatibility with node-buffer 6.x (thanks Dretch)
- Use
Buffer.concatinstead of string concatenation to fix ordering issues (thanks @rnons)
- Add HTTP version to
HTTPure.Request(thanks @joneshf) - Fix inconsistent case-insensitivity with
HTTPure.Headers(thanks @joneshf)
- Re-export
HTTPure.QueryandHTTPure.Status(thanks @akheron) - Support binary response body (thanks @akheron)
- Add support for chunked responses
ServerMnow contains a callback that when called will shut down the server- Map empty query parameters to empty strings instead of
"true" - Decode percent encoding in path segments and query parameters automatically
- Use psc-package instead of bower
- Add support for PureScript 0.12 (thanks @akheron)
- Upgrade all dependencies (thanks @akheron)
- Use
Effectinstead ofEff(thanks @akheron) - Use
Foreign.Objectinstead ofStrMap(thanks @akheron) - Use
Effect.Refinstead ofControl.Monad.ST(thanks @akheron) - Drop
SecureServerM, it's the same asServerMnow (thanks @akheron)
- Rename
serve'toserveSecure, addserve'andserveSecure'.
- Make ResponseM an
Affinstead ofEff - Add helpers and instances for working with headers (
Semigroupinstance,HTTPure.header,HTTPure.empty, etc) - Clean up patterns for response helpers so all helpers are consistent
- Add
HTTPure.fullPathfunction - Extend
Lookuptypeclass -- make!!returnMaybetypes and add!?and!@operators. - Add examples and guidelines for working with middlewares
- Add guides
- Major refactor for simpler APIs
- Lookup typeclass and
!!operator - Support for inspecting and routing on path segments
- Support for inspecting and routing on query parameters
- Support HTTPS servers
- Support all HTTP response statuses
- Support all HTTP request methods
- Added in v0.1.0
- Get
- Post
- Put
- Delete
- New
- Head
- Connect
- Options
- Trace
- Patch
- Added in v0.1.0
- Support OK response
- Support Get, Post, Put, and Delete HTTP methods
- Support sending and reading headers and body