Skip to content

request ¤

Base mixin for HTTP request handling in Fluree operations.

Classes:

  • RequestMixin

    Base class for creating and managing HTTP requests.

RequestMixin dataclass ¤

RequestMixin()

Bases: ABC, SupportsRequestCreation

Base class for creating and managing HTTP requests.

Methods:

  • build_request_payload

    Constructs the JSON payload for the request.

  • get_request

    Constructs an HTTP request with the operation's data.

  • get_url

    Returns the endpoint URL for the request.

build_request_payload abstractmethod ¤

build_request_payload() -> JsonObject

Constructs the JSON payload for the request.

Raises:

get_request ¤

get_request() -> Request

Constructs an HTTP request with the operation's data.

Raises:

get_url abstractmethod ¤

get_url() -> str

Returns the endpoint URL for the request.

Raises: