Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/p/y/pyroutes-0.5.0/pyroutes/http/response.py   pyroutes(Download)
 
        if default_content_header and 'Content-Type' not in header_names:
            self.headers.append(('Content-Type', settings.DEFAULT_CONTENT_TYPE))
 
        if status_code in _RESPONSES:

src/p/y/pyroutes-HEAD/pyroutes/http/response.py   pyroutes(Download)
        self.headers = []
        if default_content_header and 'Content-Type' not in header_names:
            self.headers.append(('Content-Type', settings.DEFAULT_CONTENT_TYPE))
        if not headers is None:
            self.headers += headers