Did I find the right examples for you? yes no

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

src/h/r/hroute-0.2.0/hroute/rewrite.py   hroute(Download)
 
 
from .util import headers_lines, normalize, send_body, \
absolute_http_url_re
 
                headers['location'] = urlparse.urljoin(self.local_base, rel)
 
            return False, headers_lines(self.parser, headers)
 
        # rewrite location
            rewrite = False
        headers['connection'] = 'close'
        return (rewrite, headers_lines(self.parser, headers))
 
    def rewrite_link(self, link):

src/h/r/hroute-HEAD/hroute/rewrite.py   hroute(Download)
 
 
from .util import headers_lines, normalize, send_body, \
absolute_http_url_re
 
                headers['location'] = urlparse.urljoin(self.local_base, rel)
 
            return False, headers_lines(self.parser, headers)
 
        # rewrite location
            rewrite = False
        headers['connection'] = 'close'
        return (rewrite, headers_lines(self.parser, headers))
 
    def rewrite_link(self, link):

src/h/r/hroute-0.2.0/hroute/proxy.py   hroute(Download)
from .lookup import HttpRoute
from .rewrite import rewrite_headers, RewriteResponse
from .util import headers_lines, send_body, get_host
 
class Route(object):
                headers['connection'] = 'close'
 
                new_headers = headers_lines(parser, headers)
                resp.writeall("".join(new_headers) + "\r\n")
 

src/h/r/hroute-HEAD/hroute/proxy.py   hroute(Download)
from .lookup import HttpRoute
from .rewrite import rewrite_headers, RewriteResponse
from .util import headers_lines, send_body, get_host
 
class Route(object):
                headers['connection'] = 'close'
 
                new_headers = headers_lines(parser, headers)
                resp.writeall("".join(new_headers) + "\r\n")