Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement header parsing within frameworks #13

Open
bblfish opened this issue Nov 23, 2022 · 0 comments
Open

implement header parsing within frameworks #13

bblfish opened this issue Nov 23, 2022 · 0 comments

Comments

@bblfish
Copy link
Owner

bblfish commented Nov 23, 2022

Currently tests are run in Akka on hand built versions of the example code, and we have something a bit more programmatic with http4s. This is useful to get the framework going.

The problem is that those tests don't tell us how headers are rally parsed by the underlying systems, and that is quite important if we want to know if our signatures are going to work correctly when deployed.

For example does the request

POST /path?param=value&foo=bar&baz=bat%2Dman HTTP/1.1
Host: www.example.com

create a modelled object where the %2D has been decoded or not? Depending
on that the result of using @query may be different. Other examples are bound to exist.

Akka has tests suites that allow one to do this (but don't use munit).
Http4s may be more complicated as it abstracts over a number of underlying components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant