gravitino.utils.http_client.HTTPClient

class gravitino.utils.http_client.HTTPClient(host, *, request_headers=None, timeout=10, is_debug=False, auth_data_provider: AuthDataProvider | None = None)

Bases: object

__init__(host, *, request_headers=None, timeout=10, is_debug=False, auth_data_provider: AuthDataProvider | None = None) None

Methods

__init__(host, *[, request_headers, ...])

close()

delete(endpoint[, error_handler])

get(endpoint[, params, headers, error_handler])

patch(endpoint[, json, error_handler])

post(endpoint[, json, error_handler])

post_form(endpoint[, data, error_handler])

put(endpoint[, json, error_handler])

Attributes

FORMDATA_HEADER

JSON_HEADER