Raindrops Aggregate Aggregate::LastDataRecv Aggregate::PMQ LastDataRecv Linux ListenStats Middleware Middleware::Proxy Struct Watcher


::new #close #each #method_missing #respond_to? #to_path

class Raindrops::Middleware::Proxy

This class is used by Raindrops::Middleware to proxy application response bodies. There should be no need to use it directly.

Public Class Methods

new (body, stats) source

Public Instance Methods

close () source

the Rack server should call this after each (usually ensure-d)

each () { |x| ... } source

yield to the Rack server here for writing

method_missing (*args, &block) source

Avoid breaking users of non-standard extensions (e.g. body) Rack::BodyProxy does the same.

respond_to? (m) source

Rack servers use respond_to? to check for the presence of close and to_path methods.

to_path () source

Some Rack servers can optimize response processing if it responds to to_path via the sendfile(2) system call, we proxy to_path to the underlying body if possible.

Pages Classes Methods
mail archives:
public: / private:
source code: git clone git://
	git clone