Ejemplo n.º 1
0
 def scheme(self):
     """
     HTTP request scheme, which should be "http" or "https".
     """
     if not self.data.scheme:
         return self.data.scheme
     return message._native(self.data.scheme)
Ejemplo n.º 2
0
 def scheme(self):
     """
     HTTP request scheme, which should be "http" or "https".
     """
     if not self.data.scheme:
         return self.data.scheme
     return message._native(self.data.scheme)
Ejemplo n.º 3
0
 def path(self):
     """
     HTTP request path, e.g. "/index.html".
     Guaranteed to start with a slash, except for OPTIONS requests, which may just be "*".
     """
     if self.data.path is None:
         return None
     else:
         return message._native(self.data.path)
Ejemplo n.º 4
0
 def path(self):
     """
     HTTP request path, e.g. "/index.html".
     Guaranteed to start with a slash, except for OPTIONS requests, which may just be "*".
     """
     if self.data.path is None:
         return None
     else:
         return message._native(self.data.path)
Ejemplo n.º 5
0
 def method(self):
     """
     HTTP request method, e.g. "GET".
     """
     return message._native(self.data.method).upper()
Ejemplo n.º 6
0
 def reason(self):
     """
     HTTP Reason Phrase, e.g. "Not Found".
     This is always :py:obj:`None` for HTTP2 requests, because HTTP2 responses do not contain a reason phrase.
     """
     return message._native(self.data.reason)
Ejemplo n.º 7
0
 def reason(self):
     """
     HTTP Reason Phrase, e.g. "Not Found".
     This is always :py:obj:`None` for HTTP2 requests, because HTTP2 responses do not contain a reason phrase.
     """
     return message._native(self.data.reason)
Ejemplo n.º 8
0
 def method(self):
     """
     HTTP request method, e.g. "GET".
     """
     return message._native(self.data.method).upper()