252件ヒット
[1-100件を表示]
(0.053秒)
クラス
-
Net
:: HTTP (132) -
Net
:: HTTPResponse (36)
モジュール
-
Net
:: HTTPHeader (84)
キーワード
- [] (12)
- body (12)
-
ca
_ file (12) -
ca
_ path (12) - ciphers (12)
-
content
_ type (12) - delete (12)
- entity (12)
- fetch (12)
-
get
_ fields (12) -
local
_ host (12) -
local
_ port (12) -
main
_ type (12) -
proxy
_ address (12) -
proxy
_ pass (12) -
proxy
_ uri (12) -
proxy
_ user (12) - proxyaddr (12)
-
read
_ body (12) -
ssl
_ version (12) -
sub
_ type (12)
検索結果
先頭5件
-
Net
:: HTTP # ca _ file -> String | nil (6204.0) -
信頼する CA 証明書ファイルのパスを返します。
...信頼する CA 証明書ファイルのパスを返します。
@see Net::HTTP#ca_file=, OpenSSL::SSL::SSLContext#ca_file... -
Net
:: HTTP # local _ host -> String | nil (6204.0) -
接続に用いるローカルホスト名を返します。
...接続に用いるローカルホスト名を返します。
nil の場合システムが適当にローカルホストを
決めます。
デフォルトは nil です。
@see Net::HTTP#local_host=, Net::HTTP#local_port... -
Net
:: HTTP # local _ port -> nil | Integer | String (6204.0) -
接続に用いるローカルポートを返します。
...接続に用いるローカルポートを返します。
nil の場合システムが適当にローカルポートを
決めます。
デフォルトは nil です。
@see Net::HTTP#local_port=, Net::HTTP#local_host... -
Net
:: HTTP # ssl _ version -> String | Symbol | nil (6204.0) -
利用するプロトコルの種類を返します。
...利用するプロトコルの種類を返します。
@see Net::HTTP#ssl_version=... -
Net
:: HTTPHeader # delete(key) -> [String] | nil (6204.0) -
key ヘッダフィールドを削除します。
...は
nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length = 10
req.content_length # => 10
req.delete("Content-Length") # => ["10"]
req.content_length # => nil
//}... -
Net
:: HTTPHeader # get _ fields(key) -> [String] (6204.0) -
key ヘッダフィールドの値 (文字列) を配列で返します。
...key ヘッダフィールドの値 (文字列) を配列で返します。
たとえばキー 'content-length' に対しては ['2048'] のような
文字列が得られます。一種類のヘッダフィールドが一つのヘッダの中
に複数存在することがありえます。
key は......ール名を文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.get_fields('accept-ranges') # => ["none"]
//}
@see Net::HTTPHeader#[] , Net::HTTPHeader#[]=,
Net::HTTPHeader#add_field... -
Net
:: HTTP # ciphers -> String | [String] | nil (305.0) -
Net::HTTP#ciphers で設定した値を返します。
...Net::HTTP#ciphers で設定した値を返します。
OpenSSL::SSL::SSLContext#ciphers が返す値とは
異なるので注意してください。
@see Net::HTTP#ciphers=... -
Net
:: HTTPHeader # fetch(key , default) -> String (206.0) -
key ヘッダフィールドを返します。
...を返します。
たとえばキー 'content-length' に対しては '2048'
のような文字列が得られます。キーが存在しなければ nil を返します。
該当するキーが登録されてい
ない時には、引数 default が与えられていればその値を、ブロ......efault 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キーの探索に 失敗すると発生します。
//emlist[例 key のみ指定。key が存在する][ruby]{
require 'net/http'
u....../www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fetch("content-length")
rescue => e
e # => #<KeyError: key not found: "content-length">
en... -
Net
:: HTTP # proxy _ address -> String|nil (205.0) -
プロクシ経由で接続する HTTP オブジェクトならプロクシのアドレス を返します。
...プロクシ経由で接続する HTTP オブジェクトならプロクシのアドレス
を返します。
そうでないなら nil を返します。
proxyaddr は時代遅れのメソッドです。
@see Net::HTTP#proxy_address=, Net::HTTP#proxy_port, Net::HTTP.new...