(self, headers)
Prepares the given HTTP headers.
Prepares the given HTTP headers.
Prepares the given HTTP headers .
def prepare_headers(self, headers):
        """Prepares the given HTTP headers."""

        if headers:
            self.headers = CaseInsensitiveDict((to_native_string(name), value) for name, value in headers.items())
        else:
            self.headers = CaseInsensitiveDict()
def prepare_headers ( self , headers ) : if headers : self . headers = CaseInsensitiveDict ( ( to_native_string ( name ) , value ) for name , value in headers . items ( ) ) else : self . headers = CaseInsensitiveDict ( )