Sha256: b1e17baa79418f1e741f612074b18a19f46f436cfa73a5aa2024387c87678543
Contents?: true
Size: 819 Bytes
Versions: 35
Compression:
Stored size: 819 Bytes
Contents
module Datadog module Transport module HTTP # Data structure for an HTTP request class Env < Hash attr_reader \ :request def initialize(request, options = nil) @request = request merge!(options) unless options.nil? end def verb self[:verb] end def verb=(value) self[:verb] = value end def path self[:path] end def path=(value) self[:path] = value end def body self[:body] end def body=(value) self[:body] = value end def headers self[:headers] ||= {} end def headers=(value) self[:headers] = value end end end end end
Version data entries
35 entries across 35 versions & 2 rubygems