MCPcopy
hub / github.com/encode/starlette / _should_use_range

Method _should_use_range

starlette/responses.py:453–454  ·  view source on GitHub ↗
(self, http_if_range: str)

Source from the content-addressed store, hash-verified

451 )
452
453 def _should_use_range(self, http_if_range: str) -> bool:
454 return http_if_range == self.headers["last-modified"] or http_if_range == self.headers["etag"]
455
456 @classmethod
457 def _parse_range_header(cls, http_range: str, file_size: int) -> list[tuple[int, int]]:

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected