Request and Response

Request

class oci.request.Request(method, url, query_params=None, header_params=None, body=None, response_type=None, enforce_content_headers=True)

Attributes

body Request body
enforce_content_headers Whether content headers should be added for PUT and POST requests when not present.
header_params Request header params
method The HTTP method
query_params Query parameters in the url
response_type Response data type
url URL that will serve the request
body = None

Request body

enforce_content_headers = None

Whether content headers should be added for PUT and POST requests when not present. Defaults to True.

Type:bool
header_params = None

Request header params

Type:dict(str, str)
method = None

The HTTP method

Type:str
query_params = None

Query parameters in the url

Type:dict(str, str)
response_type = None

Response data type

Type:str
url = None

URL that will serve the request

Type:str

Response