class HTTPClient

HTTPClientクラス

簡易HTTPクライアント機能を提供するクラス

Public Class Methods

new(server, port=80) click to toggle source
コンストラクタ
HTTPClientオブジェクトを生成する。

Args

server HTTPサーバアドレス

port HTTPサーバポート番号

Return

生成されたHTTPClientオブジェクト

Exception

# File enzi-lib.rb, line 761
def initialize(server, port=80)
end

Public Instance Methods

get(url, params={}) click to toggle source
GETリクエスト
HTTPサーバに対してGETリクエストを送信し、レスポンスを受け取る。

Args

url リクエストURL

params パラメータのハッシュ

Return

HTTPResponse

Exception

# File enzi-lib.rb, line 772
def get(url, params={})
  ""
end
post(url, params={}) click to toggle source
POSTリクエスト
HTTPサーバに対してPOSTリクエストを送信し、レスポンスを受け取る。

Args

url リクエストURL

params パラメータのハッシュ

Return

HTTPResponse

Exception

# File enzi-lib.rb, line 784
def post(url, params={})
  ""
end