MCPcopy
hub / github.com/django/django / to_wsgi_name

Method to_wsgi_name

django/http/request.py:548–552  ·  view source on GitHub ↗
(cls, header)

Source from the content-addressed store, hash-verified

546
547 @classmethod
548 def to_wsgi_name(cls, header):
549 header = header.replace("-", "_").upper()
550 if header in cls.UNPREFIXED_HEADERS:
551 return header
552 return f"{cls.HTTP_PREFIX}{header}"
553
554 @classmethod
555 def to_asgi_name(cls, header):

Callers 1

to_wsgi_namesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected