class SiteHub

Requirements: www.mnot.net/blog/2011/07/11/what_proxies_must_do

  1. remove hop by hop headers

  2. detect bad framing: where content length and content-encoding clash or are incorrect

  3. fix conflicts between header and URL header

  4. insert via (optional)

  5. Expect header (optional)

rubocop:disable Metrics/ParameterLists

this helper module is for the benefit of middleware that may not otherwse respond to resolve. THis is to ensure that middleware wrapping the core forward proxy apps had the resolve method also.

Constants

ASYNC_CALLBACK
COMMA
EMPTY_STRING
EQUALS_SIGN
ERRORS
FULL_STOP
HYPHEN
NEW_LINE
QUESTION_MARK
REQUEST
REQUEST_MAPPING
RESPONSE
SEMICOLON
SEMICOLON_WITH_SPACE
SPACE
TIME_STAMP_FORMAT
UNDERSCORE
VERSION

Public Class Methods

build(&block) click to toggle source
# File lib/sitehub.rb, line 5
def build(&block)
  Builder.new(&block).build
end