Source code for human_requests.abstraction.request
from dataclasses import dataclass
from typing import TYPE_CHECKING, Optional
from .http import URL, HttpMethod
if TYPE_CHECKING:
from ..human_page import HumanPage
@dataclass(frozen=True)
[docs]
class FetchRequest:
"""Represents all the data passed in the request."""
"""The page that made the request."""
"""The method used in the request."""
"""The URL of the request."""
"""The headers of the request."""
[docs]
body: Optional[str | list | dict]
"""The body of the request."""