MCPcopy Create free account
hub / github.com/EasyIME/PIME / write_headers

Method write_headers

python/python3/tornado/httputil.py:569–591  ·  view source on GitHub ↗

Write an HTTP header block. :arg start_line: a `.RequestStartLine` or `.ResponseStartLine`. :arg headers: a `.HTTPHeaders` instance. :arg chunk: the first (optional) chunk of data. This is an optimization so that small responses can be written in the same call a

(
        self,
        start_line: Union["RequestStartLine", "ResponseStartLine"],
        headers: HTTPHeaders,
        chunk: Optional[bytes] = None,
    )

Source from the content-addressed store, hash-verified

567 """
568
569 def write_headers(
570 self,
571 start_line: Union["RequestStartLine", "ResponseStartLine"],
572 headers: HTTPHeaders,
573 chunk: Optional[bytes] = None,
574 ) -> "Future[None]":
575 """Write an HTTP header block.
576
577 :arg start_line: a `.RequestStartLine` or `.ResponseStartLine`.
578 :arg headers: a `.HTTPHeaders` instance.
579 :arg chunk: the first (optional) chunk of data. This is an optimization
580 so that small responses can be written in the same call as their
581 headers.
582
583 The ``version`` field of ``start_line`` is ignored.
584
585 Returns a future for flow control.
586
587 .. versionchanged:: 6.0
588
589 The ``callback`` argument was removed.
590 """
591 raise NotImplementedError()
592
593 def write(self, chunk: bytes) -> "Future[None]":
594 """Writes a chunk of body data.

Callers 11

__call__Method · 0.45
flushMethod · 0.45
finishMethod · 0.45
runMethod · 0.45
finishMethod · 0.45
handle_requestMethod · 0.45
respond_100Method · 0.45
respond_204Method · 0.45
finishMethod · 0.45
finishMethod · 0.45
request_callableMethod · 0.45

Calls

no outgoing calls

Tested by 7

finishMethod · 0.36
handle_requestMethod · 0.36
respond_100Method · 0.36
respond_204Method · 0.36
finishMethod · 0.36
finishMethod · 0.36
request_callableMethod · 0.36