Sha256: 8dd9a05ac16729e0359f12f1fac2dd87a20d7b2d2f6551d48f92ea950acfb582
Contents?: true
Size: 398 Bytes
Versions: 5
Compression:
Stored size: 398 Bytes
Contents
module EventMachine class HttpRequest @middleware = [] def self.new(uri, options={}) 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
5 entries across 5 versions & 1 rubygems