385件ヒット
[1-100件を表示]
(0.043秒)
クラス
-
Net
:: HTTP (132) -
Net
:: HTTPGenericRequest (33) -
Net
:: HTTPResponse (88)
モジュール
-
Net
:: HTTPHeader (132)
キーワード
- [] (11)
- address (11)
-
basic
_ auth (11) - body (22)
-
ca
_ file (11) -
ca
_ path (11) - ciphers (11)
- code (11)
-
content
_ type (11) - delete (11)
- entity (11)
- fetch (33)
-
get
_ fields (11) -
http
_ version (11) -
local
_ host (11) -
local
_ port (11) -
main
_ type (11) - method (22)
- msg (11)
- path (11)
-
proxy
_ address (11) -
proxy
_ basic _ auth (11) -
proxy
_ pass (11) -
proxy
_ uri (11) -
proxy
_ user (11) - proxyaddr (11)
-
read
_ body (22) -
ssl
_ version (11) -
sub
_ type (11)
検索結果
先頭5件
-
Net
:: HTTP # ciphers -> String | [String] | nil (205.0) -
Net::HTTP#ciphers で設定した値を返します。
Net::HTTP#ciphers で設定した値を返します。
OpenSSL::SSL::SSLContext#ciphers が返す値とは
異なるので注意してください。
@see Net::HTTP#ciphers= -
Net
:: HTTPHeader # fetch(key) -> String (106.0) -
key ヘッダフィールドを返します。
...key が存在する][ruby]{
require 'net/http'
uri = URI.parse('http://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......efault を指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.exa... -
Net
:: HTTPHeader # fetch(key) {|hash| . . . . } -> String (106.0) -
key ヘッダフィールドを返します。
...key が存在する][ruby]{
require 'net/http'
uri = URI.parse('http://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......efault を指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.exa... -
Net
:: HTTPHeader # fetch(key , default) -> String (106.0) -
key ヘッダフィールドを返します。
...key が存在する][ruby]{
require 'net/http'
uri = URI.parse('http://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......efault を指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.exa... -
Net
:: HTTP # proxy _ address -> String|nil (105.0) -
プロクシ経由で接続する HTTP オブジェクトならプロクシのアドレス を返します。
プロクシ経由で接続する HTTP オブジェクトならプロクシのアドレス
を返します。
そうでないなら nil を返します。
proxyaddr は時代遅れのメソッドです。
@see Net::HTTP#proxy_address=, Net::HTTP#proxy_port, Net::HTTP.new -
Net
:: HTTP # proxyaddr -> String|nil (105.0) -
プロクシ経由で接続する HTTP オブジェクトならプロクシのアドレス を返します。
プロクシ経由で接続する HTTP オブジェクトならプロクシのアドレス
を返します。
そうでないなら nil を返します。
proxyaddr は時代遅れのメソッドです。
@see Net::HTTP#proxy_address=, Net::HTTP#proxy_port, Net::HTTP.new -
Net
:: HTTPResponse # body -> String | () | nil (105.0) -
エンティティボディを返します。
...dapter のインスタンスを返しますが、
これは使わないでください。
entity は obsolete です。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.body[0..10] # => "<!doctype h"
//}... -
Net
:: HTTPResponse # entity -> String | () | nil (105.0) -
エンティティボディを返します。
...dapter のインスタンスを返しますが、
これは使わないでください。
entity は obsolete です。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.body[0..10] # => "<!doctype h"
//}... -
Net
:: HTTPResponse # message -> String (105.0) -
HTTP サーバがリザルトコードに付加して返すメッセージです。 例えば 'Not Found' などです。
...して返すメッセージです。
例えば 'Not Found' などです。
msg は obsolete です。使わないでください。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.message # => "OK"
//}... -
Net
:: HTTPResponse # msg -> String (105.0) -
HTTP サーバがリザルトコードに付加して返すメッセージです。 例えば 'Not Found' などです。
...して返すメッセージです。
例えば 'Not Found' などです。
msg は obsolete です。使わないでください。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.message # => "OK"
//}...