parameters: (self,
                 http_method=None,
                 service_path=None,
                 headers=None,
                 **kwargs)
docstring: Constructor.
  
      Args:
        Same as RequestState, including:
          http_method: Assigned to property.
          service_path: Assigned to property.
          headers: HTTP request headers.  If instance of Headers, assigned to
            property without copying.  If dict, will convert to name value pairs
            for use with Headers constructor.  Otherwise, passed as parameters to
            Headers constructor.
docstring_summary: Constructor.
docstring_tokens: Constructor .
function: def __init__(self,
                 http_method=None,
                 service_path=None,
                 headers=None,
                 **kwargs):
      """Constructor.
  
      Args:
        Same as RequestState, including:
          http_method: Assigned to property.
          service_path: Assigned to property.
          headers: HTTP request headers.  If instance of Headers, assigned to
            property without copying.  If dict, will convert to name value pairs
            for use with Headers constructor.  Otherwise, passed as parameters to
            Headers constructor.
      """
      super(HttpRequestState, self).__init__(**kwargs)
  
      self.__http_method = http_method
      self.__service_path = service_path
  
      # Initialize headers.
      if isinstance(headers, dict):
        header_list = []
        for key, value in sorted(headers.items()):
          if not isinstance(value, list):
            value = [value]
          for item in value:
            header_list.append((key, item))
          headers = header_list
      self.__headers = wsgi_headers.Headers(headers or [])
function_tokens: def __init__ ( self , http_method = None , service_path = None , headers = None , * * kwargs ) : super ( HttpRequestState , self ) . __init__ ( * * kwargs ) self . __http_method = http_method self . __service_path = service_path # Initialize headers. if isinstance ( headers , dict ) : header_list = [ ] for key , value in sorted ( headers . items ( ) ) : if not isinstance ( value , list ) : value = [ value ] for item in value : header_list . append ( ( key , item ) ) headers = header_list self . __headers = wsgi_headers . Headers ( headers or [ ] )