Sha256: c8c081e8bb1fb6702b0ffb0a724abb229e44a89f75a781f64a84c7e124f88d9b
Contents?: true
Size: 420 Bytes
Versions: 10
Compression:
Stored size: 420 Bytes
Contents
module EventMachine class HttpRequest @middleware = [] def self.new(uri, options={}) uri = uri.clone connopt = HttpConnectionOptions.new(uri, options) c = HttpConnection.new c.connopts = connopt c.uri = uri c end def self.use(klass, *args, &block) @middleware << klass.new(*args, &block) end def self.middleware @middleware end end end
Version data entries
10 entries across 10 versions & 2 rubygems