CompaniesHouse.Client.Req (CompaniesHouse v0.2.0)
View SourceDocumentation for CompaniesHouse.Client.Req
.
Summary
Functions
Sends a HTTP DELETE request to the given path
.
Sends a HTTP GET request to the given path
.
Sends a HTTP GET request with parameters to the given path
.
Creates a new client for interacting with the Companies House API.
Sends a HTTP POST request to the given path
.
Sends a HTTP PUT request to the given path
.
Functions
@spec delete(path :: nonempty_binary(), client :: CompaniesHouse.Client.t()) :: CompaniesHouse.Response.t()
Sends a HTTP DELETE request to the given path
.
@spec get(path :: nonempty_binary(), client :: CompaniesHouse.Client.t()) :: CompaniesHouse.Response.t()
Sends a HTTP GET request to the given path
.
@spec get( path :: nonempty_binary(), params :: keyword(), client :: CompaniesHouse.Client.t() ) :: CompaniesHouse.Response.t()
Sends a HTTP GET request with parameters to the given path
.
@spec new(client :: CompaniesHouse.Client.t()) :: Req.Request.t()
Creates a new client for interacting with the Companies House API.
@spec post( path :: nonempty_binary(), params :: keyword(), client :: CompaniesHouse.Client.t() ) :: CompaniesHouse.Response.t()
Sends a HTTP POST request to the given path
.
@spec put( path :: nonempty_binary(), params :: keyword(), client :: CompaniesHouse.Client.t() ) :: CompaniesHouse.Response.t()
Sends a HTTP PUT request to the given path
.