class HTTP::Client

Superclass hierarchy

Object
Reference
HTTP::Client

Defined in:

Class Method Summary

Instance Method Summary

Class Method Detail

def self.delete(url, headers = nil, body = nil, &block)

def self.delete(url, headers = nil, body = nil)

def self.exec(method, url, headers = nil, body = nil)

def self.exec(method, url, headers = nil, body = nil, &block)

def self.get(url, headers = nil, body = nil, &block)

def self.get(url, headers = nil, body = nil)

def self.head(url, headers = nil, body = nil, &block)

def self.head(url, headers = nil, body = nil)

def self.new(host, port = nil, ssl = false, &block)

def self.patch(url, headers = nil, body = nil)

def self.patch(url, headers = nil, body = nil, &block)

def self.post(url, headers = nil, body = nil)

def self.post(url, headers = nil, body = nil, &block)

def self.post_form(url, form, headers = nil)

def self.put(url, headers = nil, body = nil, &block)

def self.put(url, headers = nil, body = nil)

def self.new(host, port = nil, ssl = false)

Instance Method Detail

def basic_auth(username, password)

def before_request(&before_request : HTTP::Request -> )

def close

def delete(path, headers = nil, body = nil)

def delete(path, headers = nil, body = nil, &block)

def exec(request : HTTP::Request)

def exec(method : String, path, headers = nil, body = nil)

def exec(request : HTTP::Request, &block)

def exec(method : String, path, headers = nil, body = nil, &block)

def get(path, headers = nil, body = nil)

def get(path, headers = nil, body = nil, &block)

def head(path, headers = nil, body = nil, &block)

def head(path, headers = nil, body = nil)

def host

def patch(path, headers = nil, body = nil, &block)

def patch(path, headers = nil, body = nil)

def port

def post(path, headers = nil, body = nil, &block)

def post(path, headers = nil, body = nil)

def post_form(path, form : String, headers = nil)

def post_form(path, form : Hash, headers = nil)

def put(path, headers = nil, body = nil)

def put(path, headers = nil, body = nil, &block)

def ssl?