Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Make a L{StaticProducer} that will produce the body of this response.

This method will also set the response code and Content-* headers.

@param request: The L{Request} object.
@param fileForReading: The file object containing the resource.
@return: A L{StaticProducer}.  Calling C{.start()} on this will begin
    producing the response.

src/t/r/treeoflife-0.0.4/treeoflife/main.py   treeoflife(Download)
                raise
 
        producer = self.makeProducer(request, fileForReading)
 
        if request.method == str('HEAD'):

src/t/r/tree-of-life-HEAD/treeoflife/main.py   tree-of-life(Download)
                raise
 
        producer = self.makeProducer(request, fileForReading)
 
        if request.method == str('HEAD'):

src/w/e/Webmagic-12.4.12/webmagic/untwist.py   Webmagic(Download)
		setCachingHeadersOnRequest(
			request, self._responseCacheOptions, self._getTime)
		return static.File.makeProducer(self, request, fileForReading)
 
 

src/t/i/tidalstream-sdfs-1.0.0-beta/sdfs/plugins/http.py   tidalstream-sdfs(Download)
        request.setHeader('accept-ranges', 'bytes')
 
        producer = self.makeProducer(request, self.fileObject)
 
        if request.method == 'HEAD':