Module Rev::HttpEncoding
In: lib/rev/http_client.rb

Methods for building HTTP requests

Methods

Constants

HTTP_REQUEST_HEADER = "%s %s HTTP/1.1\r\n"
FIELD_ENCODING = "%s: %s\r\n"

Public Instance methods

Encode a field in an HTTP header

HTTP is kind of retarded that you have to specify a Host header, but if you include port 80 then further redirects will tack on the :80 which is annoying.

URL encodes a single k=v parameter.

Escapes a URI.

Map all header keys to a downcased string version

Unescapes a URI escaped string.

[Validate]