Hexoku.Request
Make generic Heroku HTTP requests.
You can use this for making API requests to API endpoints that are still to be supported by Hexoku.
Examples:
client = Hexoku.toolbelt
client |> Hexoku.Request.get("/apps")
Summary
| delete(client, path) | Perform a basic HTTP DELETE request to the API endpoint |
| get(client, path) | Perform a basic HTTP GET request to the API endpoint |
| head(client, path) | Perform a basic HTTP HEAD request to the API endpoint |
| options(client, path) | Perform a basic HTTP OPTIONS request to the API endpoint |
| patch(client, path, body) | Perform a basic HTTP PATCH request to the API endpoint |
| post(client, path, body) | Perform a basic HTTP POST request to the API endpoint |
| put(client, path, body) | Perform a basic HTTP PUT request to the API endpoint |
Functions
Specs:
- delete(Hexoku.Client.t, binary) :: Hexoku.Response.t
Perform a basic HTTP DELETE request to the API endpoint.
## Examples
Hexoku.toolbelt |> Hexoku.Request.delete("/apps/myapp")
Specs:
- get(Hexoku.Client.t, binary) :: Hexoku.Response.t
Perform a basic HTTP GET request to the API endpoint.
## Examples
Hexoku.toolbelt |> Hexoku.Request.get("/apps")
Specs:
- head(Hexoku.Client.t, binary) :: Hexoku.Response.t
Perform a basic HTTP HEAD request to the API endpoint.
## Examples
Hexoku.toolbelt |> Hexoku.Request.head("/apps")
Specs:
- options(Hexoku.Client.t, binary) :: Hexoku.Response.t
Perform a basic HTTP OPTIONS request to the API endpoint.
## Examples
Hexoku.toolbelt |> Hexoku.Request.options("/apps/myapp")
Specs:
- patch(Hexoku.Client.t, binary, Map.t) :: Hexoku.Response.t
Perform a basic HTTP PATCH request to the API endpoint.
## Examples
Hexoku.toolbelt |> Hexoku.Request.put("/apps/myapp", %{foo: "bar"})