wfexs_backend.fetchers.http#

Module Contents#

Classes#

API#

class wfexs_backend.fetchers.http.HTTPFetcher(progs: wfexs_backend.common.ProgsMapping = dict(), setup_block: Mapping[str, Any] | None = None, scheme_catalog: SchemeCatalog | None = None)#

Bases: wfexs_backend.fetchers.AbstractStatefulStreamingFetcher

PRIORITY: ClassVar[int] = 20#
HTTP_PROTO: Final[str] = 'http'#
HTTPS_PROTO: Final[str] = 'https'#
classmethod GetSchemeHandlers() Mapping[str, DocumentedStatefulProtocolFetcher]#
property description: str#
classmethod GetNeededPrograms() Sequence[SymbolicName]#
streamfetch(remote_file: wfexs_backend.common.URIType, dest_stream: IO[bytes], secContext: SecurityContextConfig | None = None, explicit_redirects: bool = False) wfexs_backend.fetchers.ProtocolFetcherReturn#

Method to fetch contents from http and https. This is the method to be implemented by the stateful streaming fetcher which can receive as destination a byte stream

Parameters:
  • remote_file

  • dest_stream

  • secContext