Module EventMachine::HttpEncoding
In: lib/em-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 basic auth in an HTTP header In: Array ([user, pass]) - for basic auth

    String - custom auth string (OAuth, etc)

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 query parameters: single k=v, or a URL encoded array, if v is an array of values

Escapes a URI.

Map all header keys to a downcased string version

Unescapes a URI escaped string.

[Validate]