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
33 34 35 |
# File 'lib/datadog/tracing/contrib/rack/header_collection.rb', line 33 def self.to_rack_header(name) "HTTP_#{name.to_s.upcase.gsub(/[-\s]/, '_')}" end |