種類
- インスタンスメソッド (693)
- 特異メソッド (99)
- 定数 (22)
- クラス (11)
クラス
-
Net
:: HTTP (539) -
Net
:: HTTPGenericRequest (11) -
Net
:: HTTPResponse (165)
モジュール
-
Net
:: HTTPExceptions (11) -
Net
:: HTTPHeader (88)
キーワード
-
CODE
_ CLASS _ TO _ OBJ (11) -
CODE
_ TO _ OBJ (11) - HTTPNonAuthoritativeInformation (11)
- body (11)
-
body
_ permitted? (11) -
canonical
_ each (11) -
close
_ on _ empty _ response (11) - code (11)
-
content
_ length (11) -
content
_ length= (11) -
content
_ range (11) -
content
_ type (11) -
content
_ type= (11) -
continue
_ timeout (11) - copy (11)
- delete (11)
-
each
_ capitalized (11) - entity (11)
- get (22)
- get2 (22)
-
get
_ response (22) - head (11)
- head2 (22)
- header (11)
-
http
_ version (11) -
is
_ version _ 1 _ 1? (11) -
is
_ version _ 1 _ 2? (11) -
keep
_ alive _ timeout= (11) - lock (11)
- mkcol (11)
- move (11)
- msg (11)
- patch (22)
- post (22)
- post2 (22)
-
post
_ form (11) - propfind (11)
- proppatch (11)
- put (11)
- put2 (22)
-
read
_ body (22) -
reader
_ header (11) - request (22)
-
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) - response (22)
-
response
_ body _ permitted? (11) -
send
_ request (11) -
set
_ content _ type (11) -
ssl
_ version (11) - trace (11)
- unlock (11)
- value (11)
-
version
_ 1 _ 1? (11) -
version
_ 1 _ 2 (11) -
version
_ 1 _ 2? (11)
検索結果
先頭5件
-
Net
:: HTTP # close _ on _ empty _ response -> bool (12309.0) -
レスポンスがボディを持っていない場合にコネクションを 閉じるかどうかを返します。
...レスポンスがボディを持っていない場合にコネクションを
閉じるかどうかを返します。
デフォルトでは偽(閉じない)です。
@see Net::HTTP#close_on_empty_response=... -
Net
:: HTTPNonAuthoritativeInformation (12018.0) -
HTTP レスポンス 203 (Non-Authoritative Information) を表現するクラスです。
...HTTP レスポンス 203 (Non-Authoritative Information) を表現するクラスです。
詳しくは 7231 Section 6.3.4 を見てください。... -
Net
:: HTTPExceptions # response -> Net :: HTTPResponse (9302.0) -
例外の原因となったレスポンスオブジェクトを返します。
...レスポンスオブジェクトを返します。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/invalid.html"
response = Net::HTTP.get_response(URI.parse(uri))
begin
response.value
rescue => e
e.response # => #<Net::HTTPNotFound 404 Not Found readbody=true>
end
//}... -
Net
:: HTTPResponse # http _ version -> String (9202.0) -
サーバがサポートしている HTTP のバージョンを文字列で返します。
...サーバがサポートしている HTTP のバージョンを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.http_version # => "1.1"
//}... -
Net
:: HTTP # options(path , initheader = nil) -> Net :: HTTPResponse (6302.0) -
サーバの path に OPTIONS リクエストを ヘッダが initheader として送り、 レスポンスを Net::HTTPResponse のオブジェクト で返します。
...サーバの path に OPTIONS リクエストを
ヘッダが initheader として送り、
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「文......字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Options... -
Net
:: HTTP . get _ response(host , path = nil , port = nil) -> Net :: HTTPResponse (6302.0) -
指定した対象に GET リクエストを送り、そのレスポンスを Net::HTTPResponse として返します。
...指定した対象に GET リクエストを送り、そのレスポンスを
Net::HTTPResponse として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。... -
Net
:: HTTP . get _ response(uri) -> Net :: HTTPResponse (6302.0) -
指定した対象に GET リクエストを送り、そのレスポンスを Net::HTTPResponse として返します。
...指定した対象に GET リクエストを送り、そのレスポンスを
Net::HTTPResponse として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。... -
Net
:: HTTPHeader # content _ type -> String|nil (6236.0) -
"text/html" のような Content-Type を表す 文字列を返します。
..."text/html" のような Content-Type を表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post.......new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data'
req.content_type # => "multipart/form-data"
//}... -
Net
:: HTTPHeader # content _ range -> Range|nil (6230.0) -
Content-Range: ヘッダフィールドの値を Range で返します。 Range の表わす長さは Net::HTTPHeader#range_length で得られます。
...Content-Range: ヘッダフィールドの値を Range で返します。
Range の表わす長さは Net::HTTPHeader#range_length で得られます。
ヘッダが設定されていない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.exa......mple.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_range # => nil
req['Content-Range'] = "bytes 0-499/1234"
req.content_range # => 0..499
//}... -
Net
:: HTTPHeader # content _ length -> Integer|nil (6218.0) -
Content-Length: ヘッダフィールドの表している値を整数で返します。
...Content-Length: ヘッダフィールドの表している値を整数で返します。
ヘッダが設定されていない場合には nil を返します。
@raise Net::HTTPHeaderSyntaxError フィールドの値が不正である場合に
発生します。......//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 # => nil
req.content_length = 10
req.content_length # => 10
//}...