Current section
Files
Jump to
Current section
Files
pooka_httpc
README.md
README.md
# httpc
[](https://hex.pm/packages/pooka_httpc)
[](https://pooka-httpc.hexdocs.pm/)
[](https://github.com/pooka-lang/httpc/actions/workflows/test.yml)
An HTTP client for Pooka, using Erlang's httpc.
```sh
pooka add pooka_httpc
```
```pooka
import pooka/httpc
let assert Ok(reply) = httpc.get("https://example.org/")
echo reply.status
```
TLS verification is enabled and redirects stay visible by default. Non-success HTTP statuses are responses, not transport failures. Uses `pooka/http` requests and responses; bodies are supported for POST, PUT and PATCH.
See the [API documentation](https://pooka-httpc.hexdocs.pm/) for the rest.
## Licence
Licensed under the [Apache License, Version 2.0](LICENSE).