vendor/bundle/ruby/2.2.0/gems/grape-0.7.0/lib/grape/endpoint.rb
# Set an individual header or retrieve
# all headers that have been set.
Set an individual header or retrieve
all headers that have been set.
Set an individual header or retrieve all headers that have been set .
def header(key = nil, val = nil)
      if key
        val ? @header[key.to_s] = val : @header.delete(key.to_s)
      else
        @header
      end
    end
def header ( key = nil , val = nil ) if key val ? @header [ key . to_s ] = val : @header . delete ( key . to_s ) else @header end end
Set an individual header or retrieve
all headers that have been set.
Set an individual header or retrieve all headers that have been set .
key
val