Skip to content

yaml_ld.document_loaders.http.HTTPDocumentLoader dataclass

Bases: DocumentLoader

Load documents from HTTP sources.

session class-attribute instance-attribute

session: Session = field(default_factory=Session)

__call__

__call__(
    source: URI, options: DocumentLoaderOptions
) -> RemoteDocument

Load documents from HTTP sources.

__init__

__init__(session: Session = Session()) -> None
follow_link_header(
    source: URI,
    content_type: str | None,
    link_header: str,
    options: DocumentLoaderOptions,
) -> RemoteDocument | None

Follow Link header.