1513件ヒット
[1-100件を表示]
(0.106秒)
種類
- インスタンスメソッド (1227)
- 特異メソッド (264)
- クラス (22)
クラス
-
Net
:: HTTP (1007) -
Net
:: HTTPGenericRequest (88) -
Net
:: HTTPRequest (11) -
Net
:: HTTPResponse (99)
モジュール
-
Net
:: HTTPExceptions (11) -
Net
:: HTTPHeader (275)
キーワード
- HTTPMultiStatus (11)
- HTTPNonAuthoritativeInformation (11)
- [] (11)
- active? (11)
-
add
_ field (11) - address (11)
-
basic
_ auth (11) - body (22)
-
body
_ exist? (11) -
body
_ permitted? (11) -
body
_ stream (11) -
body
_ stream= (11) -
ca
_ file (11) -
ca
_ path (11) -
canonical
_ each (11) - cert (11)
-
cert
_ store (11) - ciphers (11)
- code (11)
-
content
_ length (11) -
content
_ range (11) -
content
_ type (11) -
continue
_ timeout (11) - copy (11)
-
default
_ port (11) - delete (22)
-
each
_ capitalized (11) -
each
_ capitalized _ name (11) - entity (11)
- fetch (33)
- finish (11)
- get (44)
- get2 (22)
-
get
_ fields (11) -
get
_ print (22) -
get
_ response (22) - head (11)
- head2 (22)
-
http
_ default _ port (11) -
http
_ version (11) -
https
_ default _ port (11) -
is
_ version _ 1 _ 1? (11) -
is
_ version _ 1 _ 2? (11) -
keep
_ alive _ timeout (11) -
keep
_ alive _ timeout= (11) - key (11)
- length (11)
-
local
_ host (11) -
local
_ port (11) - lock (11)
-
main
_ type (11) - method (22)
- mkcol (11)
- move (11)
- msg (11)
- new (22)
-
open
_ timeout (11) - patch (22)
- path (11)
-
peer
_ cert (11) - port (11)
- post (22)
- post2 (22)
-
post
_ form (11) - propfind (11)
- proppatch (11)
-
proxy
_ address (22) -
proxy
_ basic _ auth (11) -
proxy
_ pass (22) -
proxy
_ port (22) -
proxy
_ uri (11) -
proxy
_ user (22) - proxyaddr (11)
- proxyport (11)
- put (11)
- put2 (22)
- range (11)
-
range
_ length (11) -
read
_ body (11) -
read
_ timeout (11) - request (22)
-
request
_ body _ permitted? (11) -
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) - response (11)
-
response
_ body _ permitted? (11) -
send
_ request (11) -
set
_ debug _ output (11) -
set
_ range (33) - size (11)
-
ssl
_ timeout (11) -
ssl
_ version (11) - start (22)
- started? (11)
-
sub
_ type (11) - trace (11)
- unlock (11)
- value (11)
-
verify
_ callback (11) -
verify
_ depth (11) -
verify
_ mode (11) -
version
_ 1 _ 1? (11) -
version
_ 1 _ 2 (11) -
version
_ 1 _ 2? (11) -
write
_ timeout (6)
検索結果
先頭5件
-
Net
:: HTTPHeader # add _ field(key , val) -> () (6310.0) -
key ヘッダフィールドに val を追加します。
...TPHeader#get_fields
//emlist[例][ruby]{
request.add_field 'X-My-Header', 'a'
p request['X-My-Header'] #=> "a"
p request.get_fields('X-My-Header') #=> ["a"]
request.add_field 'X-My-Header', 'b'
p request['X-My-Header'] #=> "a, b"
p request.get_fields('X-My-Header') #=>......["a", "b"]
request.add_field 'X-My-Header', 'c'
p request['X-My-Header'] #=> "a, b, c"
p request.get_fields('X-My-Header') #=> ["a", "b", "c"]
//}... -
Net
:: HTTPHeader # main _ type -> String|nil (6308.0) -
"text/html" における "text" のようなタイプを表す 文字列を返します。
...タイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.main_type # => "text"
//}... -
Net
:: HTTP # ca _ file -> String | nil (6302.0) -
信頼する CA 証明書ファイルのパスを返します。
...信頼する CA 証明書ファイルのパスを返します。
@see Net::HTTP#ca_file=, OpenSSL::SSL::SSLContext#ca_file... -
Net
:: HTTP # continue _ timeout -> Integer | nil (6302.0) -
「100 Continue」レスポンスを待つ秒数を返します。
...「100 Continue」レスポンスを待つ秒数を返します。
この秒数待ってもレスポンスが来ない場合は
リクエストボディを送信します。
デフォルトは nil (待たない)です。
@see Net::HTTP#continue_timeout=... -
Net
:: HTTP # propfind(path , body , initheader = {& # 39;Depth& # 39; => & # 39;0& # 39;}) -> Net :: HTTPResponse (6302.0) -
サーバの path に PROPFIND リクエストを ヘッダを initheader, ボディを body として送ります。
...サーバの path に PROPFIND リクエストを
ヘッダを initheader, ボディを body として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param body リクエスト......のボディを文字列で与えます。
@param initheader リクエストのヘッダを「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Propfind... -
Net
:: HTTPHeader # each _ capitalized _ name {|name| . . . . } -> () (6278.0) -
保持しているヘッダ名を正規化 ('x-my-header' -> 'X-My-Header') して、ブロックに渡します。
...'x-my-header' -> 'X-My-Header')
して、ブロックに渡します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_capitalized_name { |key| puts key }
# => Accept-Encoding
# => Accept
# => User-A... -
Net
:: HTTP # keep _ alive _ timeout -> Integer (6218.0) -
以前のリクエストで使ったコネクションの再利用(keep-alive)を許可する秒数を 返します。
...以前のリクエストで使ったコネクションの再利用(keep-alive)を許可する秒数を
返します。
デフォルトは2(秒)です。
@see Net::HTTP#keep_alive_timeout=... -
Net
:: HTTPHeader # proxy _ basic _ auth(account , password) -> [String] (6218.0) -
Proxy 認証のために Proxy-Authorization: ヘッダをセットします。
...-Authorization: ヘッダをセットします。
@param account アカウント名を文字列で与えます。
@param password パスワードを文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.......request_uri)
req.proxy_basic_auth("account", "password") # => ["Basic YWNjb3VudDpwYXNzd29yZA=="]
//}... -
Net
:: HTTPHeader # get _ fields(key) -> [String] (6214.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 # active? -> bool (6202.0) -
HTTP セッションが開始されていたら真を返します。
...HTTP セッションが開始されていたら真を返します。
active? は時代遅れのメソッドです。...