on_document_begin Event
Marks the start of the incoming HTML document or file.
Syntax
class HTTPClientDocumentBeginEventParams(object): # In class HTTPClient: @property def on_document_begin() -> Callable[[HTTPClientDocumentBeginEventParams], None]: ... @on_document_begin.setter def on_document_begin(event_hook: Callable[[HTTPClientDocumentBeginEventParams], None]) -> None: ...
Remarks
This event is followed by one or more on_progress calls. When the document has been received in full, the on_document_end event is fired.