Sha256: 41da3289c337ee08c2fd857d429b0759c07888d0413bf2e2f894e037635591b5
Contents?: true
Size: 416 Bytes
Versions: 2
Compression:
Stored size: 416 Bytes
Contents
module ZMachine 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
z-http-request-0.2.0 | lib/z-http/request.rb |
z-http-request-0.1.0 | lib/z-http/request.rb |