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

Version Path
em-http-request-samesite-0.1.1 lib/em-http/request.rb
em-http-request-samesite-1.1.7 lib/em-http/request.rb
em-http-request-1.1.7 lib/em-http/request.rb
em-http-request-1.1.6 lib/em-http/request.rb
em-http-request-1.1.5 lib/em-http/request.rb
em-http-request-1.1.4 lib/em-http/request.rb
em-http-request-1.1.3 lib/em-http/request.rb
em-http-request-1.1.2 lib/em-http/request.rb
em-http-request-1.1.1 lib/em-http/request.rb
em-http-request-1.1.0 lib/em-http/request.rb