Skip to content

response ¤

Classes:

FlureeResponse dataclass ¤

FlureeResponse(*, response: Response)

Methods:

  • cast

    Cast the JSON response to a specific type.

  • json

    Parse the response as JSON.

Attributes:

bytes property ¤

bytes: bytes

Get the response bytes.

headers property ¤

headers: Headers

Get the response headers.

is_success property ¤

is_success: bool

Check if the response was successful.

status_code property ¤

status_code: int

Get the response status code.

text property ¤

text: str

Get the response text.

cast ¤

cast(type_: type[T]) -> T

Cast the JSON response to a specific type.

json ¤

json() -> JsonObject | JsonArray

Parse the response as JSON.