- Cache Body
toBuffer
/toString
results (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 -n
in example since it's nonportable to OSX
- Dependency version bumps
- Fix
Utils.replacePlus
to 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.concat
instead 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.Query
andHTTPure.Status
(thanks @akheron) - Support binary response body (thanks @akheron)
- Add support for chunked responses
ServerM
now 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
Effect
instead ofEff
(thanks @akheron) - Use
Foreign.Object
instead ofStrMap
(thanks @akheron) - Use
Effect.Ref
instead ofControl.Monad.ST
(thanks @akheron) - Drop
SecureServerM
, it's the same asServerM
now (thanks @akheron)
- Rename
serve'
toserveSecure
, addserve'
andserveSecure'
.
- Make ResponseM an
Aff
instead ofEff
- Add helpers and instances for working with headers (
Semigroup
instance,HTTPure.header
,HTTPure.empty
, etc) - Clean up patterns for response helpers so all helpers are consistent
- Add
HTTPure.fullPath
function - Extend
Lookup
typeclass -- make!!
returnMaybe
types 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