tinyapi/wrappers/respone.py
def _form_header(self):
        """
            This method returns the headers of the respone.
        """
        if self.cookies != {}:
            self.headers["Set-Cookie"] = [
                f"{key}={value};" for key,value in self.cookies.items()
            ]
        if self.mimi_type:
            self.headers['Content-Type'] = self.mimi_type
        if self.body:
            self.headers['Content-Length'] = str(len(self.body))
        self.headers['Provider'] = 'TinyAPI'
        return [(k,v) for k,v in self.headers.items()]

            This method returns the headers of the respone.
        
This method returns the headers of the respone.
This method returns the headers of the respone .
def _form_header(self):
        if self.cookies != {}:
            self.headers["Set-Cookie"] = [
                f"{key}={value};" for key,value in self.cookies.items()
            ]
        if self.mimi_type:
            self.headers['Content-Type'] = self.mimi_type
        if self.body:
            self.headers['Content-Length'] = str(len(self.body))
        self.headers['Provider'] = 'TinyAPI'
        return [(k,v) for k,v in self.headers.items()]
def _form_header ( self ) : if self . cookies != { } : self . headers [ "Set-Cookie" ] = [ f"{key}={value};" for key , value in self . cookies . items ( ) ] if self . mimi_type : self . headers [ 'Content-Type' ] = self . mimi_type if self . body : self . headers [ 'Content-Length' ] = str ( len ( self . body ) ) self . headers [ 'Provider' ] = 'TinyAPI' return [ ( k , v ) for k , v in self . headers . items ( ) ]
This method returns the headers of the respone.
This method returns the headers of the respone .
"""
            This method returns the headers of the respone.
        """
self