request
¤
Base mixin for HTTP request handling in Fluree operations.
Classes:
-
RequestMixin–Base class for creating and managing HTTP requests.
RequestMixin
dataclass
¤
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
¤
Constructs the JSON payload for the request.
Raises:
-
NotImplementedError–If not implemented by subclass.
get_request
¤
Constructs an HTTP request with the operation's data.
Raises:
-
NotImplementedError–If get_url() or build_request_payload() are not implemented.
get_url
abstractmethod
¤
get_url() -> str
Returns the endpoint URL for the request.
Raises:
-
NotImplementedError–If not implemented by subclass.