Module: Vestige::NetHttpPatch

Defined in:
lib/vestige/net_http_patch.rb

Constant Summary collapse

X_REQUEST_ID =
'x-request-id'.freeze

Instance Method Summary collapse

Instance Method Details

#initialize_http_header(initheader) ⇒ Object



5
6
7
8
# File 'lib/vestige/net_http_patch.rb', line 5

def initialize_http_header(initheader)
  super
  @header[X_REQUEST_ID] = Vestige.trace_id unless (@header.key?(X_REQUEST_ID) || Vestige.trace_id.nil?)
end