Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/w/h/whiff-1.1/whiff/middleware/redirect.py   whiff(Download)
        if page is None:
            page = "relocated to %s<br>\n" % repr(location)
        headers = self.derive_headers('text/html')
        headers.append( ('Location', location) )
        #pr "REDIRECTION", repr(status), headers

src/w/h/whiff-1.1/whiff/middleware/repeat.py   whiff(Download)
        # always return text/plain 
        # ancestor must override content-type
        headers = self.derive_headers('text/plain')
        start_response("200 OK", headers)
        for resp in responses:

src/w/h/whiff-1.1/whiff/middleware/link.py   whiff(Download)
        uparams = urllib.urlencode(params)
        result = "%s?%s" % (url, uparams)
        headers = self.derive_headers('text/plain')
        start_response("200 OK", headers)
        return [result]

src/w/h/whiff-1.1/whiff/middleware/anchor.py   whiff(Download)
        iatts.sort()
        #result = '<a href="%s">%s</a>' % (thelink, body)
        headers = self.derive_headers('text/plain')
        start_response("200 OK", headers)
        yield '<a href="'

src/w/h/whiff-1.1/whiff/middleware/image.py   whiff(Download)
            id = self.param_value(self.id, env)
        #result = '<a href="%s">%s</a>' % (thelink, body)
        headers = self.derive_headers('text/plain')
        start_response("200 OK", headers)
        yield '<img src="'