Sha256: b2abf2d6af27df7407bd6c46c39365075e6d753b5f6e30db3878fb660cbbe617

Contents?: true

Size: 916 Bytes

Versions: 2

Compression:

Stored size: 916 Bytes

Contents

class SiteHub
  module Constants
    module HttpHeaderKeys

      ShouldNotTransfer = %w(proxy-connection).freeze

      LOCATION_HEADER = 'location'.freeze
      HOST_HEADER = 'host'.freeze
      X_FORWARDED_HOST_HEADER = 'x-forwarded-host'.freeze
      X_FORWARDED_FOR_HEADER = 'x-forwarded-for'.freeze
      CONNECTION_HEADER = 'connection'.freeze
      KEEP_ALIVE = 'keep-alive'.freeze
      PROXY_AUTHENTICATE = 'proxy-authenticate'.freeze
      PROXY_AUTHORIZATION = 'proxy-authorization'.freeze
      TE = 'te'.freeze
      TRAILERS = 'trailers'.freeze
      TRANSFER_ENCODING = 'transfer-encoding'.freeze
      CONTENT_ENCODING = 'content-encoding'.freeze
      SET_COOKIE = 'Set-Cookie'.freeze
      CONTENT_LENGTH = 'Content-Length'.freeze

      HopByHop = [CONNECTION_HEADER, KEEP_ALIVE, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, TE, TRAILERS, TRANSFER_ENCODING, CONTENT_ENCODING].freeze
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sitehub-0.4.2 lib/sitehub/constants/http_header_keys.rb
sitehub-0.4.1 lib/sitehub/constants/http_header_keys.rb