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

Method __repr__

src/werkzeug/wrappers/response.py:190–195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

188 return func
189
190 def __repr__(self) -> str:
191 if self.is_sequence:
192 body_info = f"{sum(map(len, self.iter_encoded()))} bytes"
193 else:
194 body_info = "streamed" if self.is_streamed else "likely-streamed"
195 return f"<{type(self).__name__} {body_info} [{self.status}]>"
196
197 @classmethod
198 def force_type(

Callers

nothing calls this directly

Calls 1

iter_encodedMethod · 0.95

Tested by

no test coverage detected