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

Method accept_charsets

src/werkzeug/sansio/request.py:373–377  ·  view source on GitHub ↗

List of charsets this client supports as :class:`~werkzeug.datastructures.CharsetAccept` object.

(self)

Source from the content-addressed store, hash-verified

371
372 @cached_property
373 def accept_charsets(self) -> CharsetAccept:
374 """List of charsets this client supports as
375 :class:`~werkzeug.datastructures.CharsetAccept` object.
376 """
377 return parse_accept_header(self.headers.get("Accept-Charset"), CharsetAccept)
378
379 @cached_property
380 def accept_encodings(self) -> Accept:

Callers

nothing calls this directly

Calls 2

parse_accept_headerFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected