Commit Graph

39 Commits

Author SHA1 Message Date
sigma-andex
bfaa671d1c Update tests, use localhost 2022-08-25 12:02:28 +01:00
sigma-andex
88169cd299 Separate headers into request and response headers
- Add response header construction using records
- Update tests and examples
- Update doc
2022-06-16 20:06:07 +01:00
sigma-andex
12726379bf Add validator continuation
Update routing readme
2022-06-06 21:18:04 +01:00
sigma-andex
13af9e70f5 Update docs 2022-06-06 10:57:13 +01:00
sigma-andex
d214d46cdf Add json parsing test 2022-06-06 10:57:13 +01:00
sigma-andex
fcf532bd71
Add hello world example to readme & format code 2022-05-22 17:54:11 +01:00
sigma-andex
345675d5bd Make settings optional
- Add default onStarted and closingHandler
- Use justifill to easily add options
- Remove multiple serve options
2022-05-22 17:37:42 +01:00
sigma-andex
c16eb2bdcc Rename modules and rudimentarily update readme 2022-05-22 12:48:32 +01:00
sigma-andex
9a8f34cf73 Update HTTPure to routing duplex 2022-05-22 12:34:27 +01:00
Thomas Honeyman
42bf4475e0
Update for PureScript 0.15 (#194)
* Update shell and packages

* Fix code for 0.15

* Fix tests

* Format

* Add check-pulp command

* Generate bowerfile

* Add check-pulp to CI

* Add nixfmt to formatting

* Fixup test helpers

* Take 2

* PR comments (#1)

* Nix cleanup from PR

* Use arrows functions

* Remove unnecessary step

Co-authored-by: Connor Prussin <connor@prussin.net>
2022-05-04 14:02:29 -07:00
Connor Prussin
8295d8755e
Clean up imports (#185)
* Clean up import declarations to only use qualified when necessary

* Remove unused imports
2021-11-18 22:16:35 -08:00
Connor Prussin
f58aa94484
Remove some stale doc references to make 2021-11-16 21:50:23 -08:00
Connor Prussin
6e886b91ac
Add support for non string requests (#184)
* First version of supporting non-string requests

* Clean up

* Minor cleanup

* Simplify to directly export the stream

* Add nl

* Clean up & add more testing

Co-authored-by: sigma-andex <sigma.andex@pm.me>
2021-11-15 20:02:36 -08:00
Thomas Honeyman
6ce52417f7
Migrate from purty to purs-tidy (#178)
* Replace purty with purs-tidy

* run purs-tidy
2021-11-06 12:37:31 -07:00
Connor Prussin
1ad5a08306
Add code formatting with purty (#171)
* Add code formatting with purty

* Purtify code
2021-03-22 12:02:36 -07:00
Connor Prussin
52f19fbabb
Don't use echo -n since it's nonportable to OSX (#170) 2021-03-20 15:44:36 -07:00
Drew Olson
ac43b0d125 Update response functions to return MonadAff m => m Response (#150)
* Update Response functions to return MonadAffs

* Install psc-package for travis build
2019-09-29 20:57:15 -07:00
Connor Prussin
775b06f004
Random example banner cleanup 2018-09-03 12:23:58 -07:00
Connor Prussin
ce4a10a3b5
Make server cancelable and clean up examples and tests (#112) 2018-09-02 14:05:54 -07: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
Connor Prussin
1bde8b4b1d
Consolidate APIs (#104)
* Consolidate APIs

* Use partial function approach instead of Streamable typeclass

* Clean up
2018-08-26 21:54:04 -07: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
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
7c606aec49
Add custom HTTP configurations (#88) 2018-02-08 21:46:45 -08:00
Connor Prussin
0fa3d1a90c Clean up tests and examples (#86) 2017-10-26 17:19:30 -04: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
a5e29897b2 Clean up example code to use new Headers.header api (#80) 2017-09-29 09:30:05 -07:00
Connor Prussin
8760334dcd Make response helpers API consistent (#79) 2017-09-29 07:49:46 -07:00
Connor Prussin
48c529e9be Add middleware example (#73) 2017-09-27 12:34:00 -07:00
Connor Prussin
d50be71fdc Make ResponseM async (#71) 2017-09-27 06:55:36 -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
bd58415e3b Add SSL support (#55) 2017-08-01 22:08:27 -07:00
Connor Prussin
930130b624 Support all HTTP status codes (#49) 2017-07-19 11:59:55 -07:00
Connor Prussin
bad8007e95 Fix bad file name (#42) 2017-07-18 11:21:21 -07:00
Connor Prussin
b8169e4fdb Add post example (#41) 2017-07-18 10:09:03 -07:00
Connor Prussin
a2d81b8606 Rename top level directories to be purescript standard 2017-07-17 23:29:51 -07:00