1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
require "http.cookie"
require "http.hsts"
require "http.proxies"
require "http.stream_common"
interface request
hsts: hsts_store|false
proxies: proxies|false
cookie_store: cookie_store|false
is_top_level: boolean
site_for_cookies: string?
expect_100_timeout: integer
follow_redirects: boolean
max_redirects: integer
post301: boolean
post302: boolean
headers: headers
const clone: (self) -> (request)
const to_uri: (self, boolean?) -> (string)
const handle_redirect: (self, headers) -> (request)|(nil, string, integer)
const set_body: (self, string|file|()->(string?)) -> ()
const go: (self, number) -> (headers, stream)|(nil, string, integer)
end
new_from_uri: (string, headers?) -> (request)
new_connect: (string, string) -> (request)
|