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

Method iter_encoded

src/werkzeug/wrappers/response.py:358–367  ·  view source on GitHub ↗

Iter the response encoded with the encoding of the response. If the response object is invoked as WSGI application the return value of this method is used as application iterator unless :attr:`direct_passthrough` was activated.

(self)

Source from the content-addressed store, hash-verified

356 self.call_on_close(close)
357
358 def iter_encoded(self) -> t.Iterator[bytes]:
359 """Iter the response encoded with the encoding of the response.
360 If the response object is invoked as WSGI application the return
361 value of this method is used as application iterator unless
362 :attr:`direct_passthrough` was activated.
363 """
364 # Encode in a separate function so that self.response is fetched
365 # early. This allows us to wrap the response with the return
366 # value from get_app_iter or iter_encoded.
367 return _iter_encoded(self.response)
368
369 @property
370 def is_streamed(self) -> bool:

Callers 8

__repr__Method · 0.95
get_dataMethod · 0.95
make_sequenceMethod · 0.95
freezeMethod · 0.95
get_wsgi_headersMethod · 0.95
get_app_iterMethod · 0.95

Calls 1

_iter_encodedFunction · 0.85

Tested by 1