MCPcopy
hub / github.com/pallets/werkzeug / _wrap_range_response

Method _wrap_range_response

src/werkzeug/wrappers/response.py:634–637  ·  view source on GitHub ↗

Wrap existing Response in case of Range Request context.

(self, start: int, length: int)

Source from the content-addressed store, hash-verified

632 return ResponseStream(self)
633
634 def _wrap_range_response(self, start: int, length: int) -> None:
635 """Wrap existing Response in case of Range Request context."""
636 if self.status_code == 206:
637 self.response = _RangeWrapper(self.response, start, length) # type: ignore
638
639 def _is_range_request_processable(self, environ: WSGIEnvironment) -> bool:
640 """Return ``True`` if `Range` header is present and if underlying

Callers 1

Calls 1

_RangeWrapperClass · 0.85

Tested by

no test coverage detected