Pleroma v1.1.9-10-g42f76306+dev Pleroma.HTTP.RequestBuilder View Source
Helper functions for building Tesla requests
Link to this section Summary
Functions
Add optional parameters to the request
Add optional parameters to the request
Add headers to the request
Specify the request method when building a request
Add custom, per-request middleware or adapter options to the request
Specify the request method when building a request
Link to this section Functions
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
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
Add headers to the request
Specify the request method when building a request
Parameters
- request (Map) - Collected request options
- m (atom) - Request method
Returns
Map
Add custom, per-request middleware or adapter options to the request
Specify the request method when building a request
Parameters
- request (Map) - Collected request options
- u (String) - Request URL
Returns
Map