request
Creates a generic HTTP request.
Return
A Call object representing the request.
Parameters
The URL for the request.
The HTTP method for the request.
The body data to be sent with the request.
The headers for the request.
The User-Agent header for the request.
Creates an OkHttp Call for a request with the specified URL.
This is a convenience function that delegates to request with a String URL.
Return
An OkHttp Call object representing the request.
Parameters
The URL of the request.
The HTTP method (default: GET).
The request body (optional).
The request headers (optional).
The user agent for the request (optional).
Creates an OkHttp Call for a request with the specified HttpUrl.
This is a convenience function that delegates to request with a String URL.
Return
An OkHttp Call object representing the request.
Parameters
The HttpUrl of the request.
The HTTP method (default: GET).
The request body (optional).
The request headers (optional).
The user agent for the request (optional).