MCPcopy
hub / github.com/django/django / _get_scheme

Method _get_scheme

django/http/request.py:306–311  ·  view source on GitHub ↗

Hook for subclasses like WSGIRequest to implement. Return 'http' by default.

(self)

Source from the content-addressed store, hash-verified

304 return "{}://{}".format(self.scheme, self.get_host())
305
306 def _get_scheme(self):
307 """
308 Hook for subclasses like WSGIRequest to implement. Return 'http' by
309 default.
310 """
311 return "http"
312
313 @property
314 def scheme(self):

Callers 1

schemeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected