Sha256: af54ed419d86f46e369d9e2ee1c1f137cdf456c1a99f01ed4b77394857d571c3

Contents?: true

Size: 461 Bytes

Versions: 16

Compression:

Stored size: 461 Bytes

Contents

# typed: true

require 'json'

module Datadog
  module Transport
    module HTTP
      module API
        # Endpoint
        class Endpoint
          attr_reader \
            :verb,
            :path

          def initialize(verb, path)
            @verb = verb
            @path = path
          end

          def call(env)
            env.verb = verb
            env.path = path
            yield(env)
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.8.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.7.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.6.1 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.6.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.5.2 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.5.1 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.5.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.4.2 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.4.1 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.4.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.3.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.2.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.1.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.0.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.0.0.beta2 lib/ddtrace/transport/http/api/endpoint.rb