Class: SiteHub
- Inherits:
-
Object
- Object
- SiteHub
- Defined in:
- lib/sitehub/resolver.rb,
lib/sitehub.rb,
lib/sitehub/rules.rb,
lib/sitehub/cookie.rb,
lib/sitehub/builder.rb,
lib/sitehub/memoize.rb,
lib/sitehub/request.rb,
lib/sitehub/version.rb,
lib/sitehub/equality.rb,
lib/sitehub/response.rb,
lib/sitehub/constants.rb,
lib/sitehub/nil_proxy.rb,
lib/sitehub/collection.rb,
lib/sitehub/middleware.rb,
lib/sitehub/cookie/flag.rb,
lib/sitehub/http_headers.rb,
lib/sitehub/string_utils.rb,
lib/sitehub/forward_proxy.rb,
lib/sitehub/request_mapping.rb,
lib/sitehub/cookie/attribute.rb,
lib/sitehub/cookie_rewriting.rb,
lib/sitehub/downstream_client.rb,
lib/sitehub/location_rewriter.rb,
lib/sitehub/location_rewriters.rb,
lib/sitehub/forward_proxy_builder.rb,
lib/sitehub/getter_setter_methods.rb,
lib/sitehub/nil_location_rewriter.rb,
lib/sitehub/middleware/reverse_proxy.rb,
lib/sitehub/middleware/error_handling.rb,
lib/sitehub/middleware/transaction_id.rb,
lib/sitehub/constants/http_header_keys.rb,
lib/sitehub/middleware/forward_proxies.rb,
lib/sitehub/collection/route_collection.rb,
lib/sitehub/middleware/logging/log_entry.rb,
lib/sitehub/middleware/logging/log_stash.rb,
lib/sitehub/middleware/logging/log_wrapper.rb,
lib/sitehub/middleware/logging/request_log.rb,
lib/sitehub/constants/rack_http_header_keys.rb,
lib/sitehub/middleware/logging/error_logger.rb,
lib/sitehub/middleware/logging/access_logger.rb,
lib/sitehub/collection/split_route_collection.rb,
lib/sitehub/collection/split_route_collection/split.rb
Overview
Requirements: www.mnot.net/blog/2011/07/11/what_proxies_must_do
-
remove hop by hop headers
-
detect bad framing: where content length and content-encoding clash or are incorrect
-
fix conflicts between header and URL header
-
insert via (optional)
-
Expect header (optional)
Defined Under Namespace
Modules: Constants, CookieRewriting, Equality, GetterSetterMethods, Memoize, Middleware, Resolver, Rules, StringUtils Classes: Builder, Collection, Cookie, DownstreamClient, ForwardProxy, ForwardProxyBuilder, HttpHeaders, InvalidProxyDefinitionException, LocationRewriter, LocationRewriters, NilLocationRewriter, NilProxy, Request, RequestMapping, Response
Constant Summary collapse
- VERSION =
'0.4.10'.freeze
- REQUEST_MAPPING =
'sitehub.request_mapping'.freeze
- REQUEST =
'sitehub.request'.freeze
- RESPONSE =
'sitehub.response'.freeze
- ASYNC_CALLBACK =
'async.callback'.freeze
- RECORDED_ROUTES_COOKIE =
'sitehub.recorded_route'.freeze
- ERRORS =
'sitehub.errors'.freeze
- TIME_STAMP_FORMAT =
'%d/%b/%Y:%H:%M:%S %z'.freeze
- EMPTY_STRING =
''.freeze
- UNDERSCORE =
'_'.freeze
- SEMICOLON =
';'.freeze
- SPACE =
' '.freeze
- SEMICOLON_WITH_SPACE =
"#{SEMICOLON}#{SPACE}".freeze
- COMMA =
','.freeze
- HYPHEN =
'-'.freeze
- QUESTION_MARK =
'?'.freeze
- EQUALS_SIGN =
'='.freeze
- FULL_STOP =
'.'.freeze
- NEW_LINE =
"\n".freeze