Current section
Files
Jump to
Current section
Files
pooka_http
README.md
README.md
# http
[](https://hex.pm/packages/pooka_http)
[](https://pooka-http.hexdocs.pm/)
[](https://github.com/pooka-lang/http/actions/workflows/test.yml)
HTTP requests, responses, cookies and URLs for Pooka.
```sh
pooka add pooka_http
```
```pooka
import pooka/http
let assert Ok(request) = http.get("https://example.org/birds?q=owl")
assert request.query_param("q") == Some("owl")
```
Shared HTTP vocabulary without a server or client. Header lookup ignores case. Checked component and cookie helpers report invalid input; `Request.validate()` checks a request before it goes on the wire.
See the [API documentation](https://pooka-http.hexdocs.pm/) for the rest.
## Licence
Licensed under the [Apache License, Version 2.0](LICENSE).