Module | EventMachine::HttpEncoding |
In: |
lib/em-http/http_encoding.rb
|
HTTP_REQUEST_HEADER | = | "%s %s HTTP/1.1\r\n" |
FIELD_ENCODING | = | "%s: %s\r\n" |
Encode basic auth in an HTTP header In: Array ([user, pass]) - for basic auth
String - custom auth string (OAuth, etc)
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.