This module is used to build an HTTP request
Summary
Functions
Add optional parameters to the request
Add optional parameters to the request
Specify the library version when building a request
Specify the request method when building a request
Specify the request URL when building a request
Types
@type method() :: :head | :get | :delete | :trace | :options | :post | :put | :patch
@type param_location() :: :body | :query | :header | :file
Functions
@spec add_optional_params(t(), %{optional(atom()) => param_location()}, keyword()) :: t()
Add optional parameters to the request
Parameters
-
request(type:GoogleApi.Gax.Request.t) - Collected request options -
definitions(type:Map) - Map of parameter name to parameter location -
options(type:keyword()) - The provided optional parameters
Returns
-
GoogleApi.Gax.Request.t
@spec add_param(t(), param_location(), atom(), any()) :: t()
Add optional parameters to the request
Parameters
-
request(type:GoogleApi.Gax.Request.t) - Collected request options -
location(type:atom()) - Where to put the parameter -
key(type:atom()) - The name of the parameter -
value(type:any()) - The value of the parameter
Returns
-
GoogleApi.Gax.Request.t
Specify the library version when building a request
Parameters
-
request(type:GoogleApi.Gax.Request.t) - Collected request options -
version(type:String) - Library version
Returns
-
GoogleApi.Gax.Request.t
Specify the request method when building a request
Parameters
-
request(type:GoogleApi.Gax.Request.t) - Collected request options -
m(type:String) - Request method
Returns
-
GoogleApi.Gax.Request.t
@spec new() :: t()
Specify the request URL when building a request
Parameters
-
request(type:GoogleApi.Gax.Request.t) - Collected request options -
u(type:String) - Request URL
Returns
-
GoogleApi.Gax.Request.t