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

Method get_headers

src/werkzeug/exceptions.py:325–333  ·  view source on GitHub ↗
(
        self,
        environ: WSGIEnvironment | None = None,
        scope: dict[str, t.Any] | None = None,
    )

Source from the content-addressed store, hash-verified

323 self.www_authenticate = www_authenticate
324
325 def get_headers(
326 self,
327 environ: WSGIEnvironment | None = None,
328 scope: dict[str, t.Any] | None = None,
329 ) -> list[tuple[str, str]]:
330 headers = super().get_headers(environ, scope)
331 if self.www_authenticate:
332 headers.extend(("WWW-Authenticate", str(x)) for x in self.www_authenticate)
333 return headers
334
335
336class Forbidden(HTTPException):

Callers 1

Calls 2

get_headersMethod · 0.45
extendMethod · 0.45

Tested by 1