google_gax v0.1.1 GoogleApi.Gax.Request View Source
This module is used to build an HTTP request
Link to this section Summary
Functions
Add optional parameters to the request
Add optional parameters to the request
Specify the request method when building a request
Specify the request method when building a request
Link to this section Types
Link to this type
method()
View Source
method() :: :head | :get | :delete | :trace | :options | :post | :put | :patch
Link to this section Functions
Link to this function
add_optional_params(request, definitions, list)
View Source
add_optional_params( GoogleApi.Gax.Request.t(), %{optional(atom()) => param_location()}, keyword() ) :: GoogleApi.Gax.Request.t()
Add optional parameters to the request
Parameters
- request (Map) - Collected request options
- definitions (Map) - Map of parameter name to parameter location.
- options (KeywordList) - The provided optional parameters
Returns
Map
Link to this function
add_param(request, location, key, values)
View Source
add_param(GoogleApi.Gax.Request.t(), param_location(), atom(), any()) :: GoogleApi.Gax.Request.t()
Add optional parameters to the request
Parameters
- request (Map) - Collected request options
- location (atom) - Where to put the parameter
- key (atom) - The name of the parameter
- value (any) - The value of the parameter
Returns
Map
Link to this function
method(request)
View Source
method(GoogleApi.Gax.Request.t()) :: {:ok, atom()} | :error
Link to this function
method(request, m)
View Source
method(GoogleApi.Gax.Request.t(), atom()) :: GoogleApi.Gax.Request.t()
Specify the request method when building a request
Parameters
- request (Map) - Collected request options
- m (String) - Request method
Returns
Map
Link to this function
url(request)
View Source
url(GoogleApi.Gax.Request.t()) :: {:ok, String.t()} | :error
Link to this function
url(request, u, replacements)
View Source
url(GoogleApi.Gax.Request.t(), String.t(), map()) :: GoogleApi.Gax.Request.t()
Specify the request method when building a request
Parameters
- request (Map) - Collected request options
- u (String) - Request URL
Returns
Map