Module: Datadog::Tracing::Contrib::Rack::Header

Defined in:
lib/datadog/tracing/contrib/rack/header_collection.rb

Overview

Classes and utilities for handling headers in Rack.

Defined Under Namespace

Classes: RequestHeaderCollection

Class Method Summary collapse

Class Method Details

.to_rack_header(name) ⇒ Object



31
32
33
# File 'lib/datadog/tracing/contrib/rack/header_collection.rb', line 31

def self.to_rack_header(name)
  "HTTP_#{name.to_s.upcase.gsub(/[-\s]/, '_')}"
end