MCPcopy Create free account
hub / github.com/tornadoweb/tornado / headers_received

Method headers_received

tornado/httpserver.py:385–393  ·  view source on GitHub ↗
(
        self,
        start_line: Union[httputil.RequestStartLine, httputil.ResponseStartLine],
        headers: httputil.HTTPHeaders,
    )

Source from the content-addressed store, hash-verified

383 self.delegate = delegate
384
385 def headers_received(
386 self,
387 start_line: Union[httputil.RequestStartLine, httputil.ResponseStartLine],
388 headers: httputil.HTTPHeaders,
389 ) -> Optional[Awaitable[None]]:
390 # TODO: either make context an official part of the
391 # HTTPConnection interface or figure out some other way to do this.
392 self.connection.context._apply_xheaders(headers) # type: ignore
393 return self.delegate.headers_received(start_line, headers)
394
395 def data_received(self, chunk: bytes) -> Optional[Awaitable[None]]:
396 return self.delegate.data_received(chunk)

Callers

nothing calls this directly

Calls 1

_apply_xheadersMethod · 0.80

Tested by

no test coverage detected