http

Package Version Hex Docs Tests

HTTP requests, responses, cookies and URLs for Pooka.

pooka add pooka_http
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 for the rest.

Licence

Licensed under the Apache License, Version 2.0.