種類
- インスタンスメソッド (1946)
- クラス (1149)
- 特異メソッド (312)
- モジュール (24)
- 定数 (24)
クラス
-
Net
:: HTTP (1478) -
Net
:: HTTPGenericRequest (108) -
Net
:: HTTPRequest (12) -
Net
:: HTTPResponse (180)
モジュール
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (492)
キーワード
-
CODE
_ CLASS _ TO _ OBJ (12) -
CODE
_ TO _ OBJ (12) - Copy (12)
- Delete (12)
- Get (12)
- HTTP (12)
- HTTPAccepted (12)
- HTTPAlreadyReported (8)
- HTTPBadGateway (12)
- HTTPBadRequest (12)
- HTTPBadResponse (12)
- HTTPClientError (12)
- HTTPClientException (7)
- HTTPConflict (12)
- HTTPContinue (12)
- HTTPCreated (12)
- HTTPEarlyHints (7)
- HTTPError (12)
- HTTPExceptions (12)
- HTTPExpectationFailed (12)
- HTTPFailedDependency (12)
- HTTPFatalError (12)
- HTTPForbidden (12)
- HTTPFound (12)
- HTTPGatewayTimeOut (12)
- HTTPGatewayTimeout (7)
- HTTPGenericRequest (12)
- HTTPGone (12)
- HTTPHeader (12)
- HTTPHeaderSyntaxError (12)
- HTTPIMUsed (12)
- HTTPInformation (12)
- HTTPInsufficientStorage (12)
- HTTPInternalServerError (12)
- HTTPLengthRequired (12)
- HTTPLocked (12)
- HTTPLoopDetected (8)
- HTTPMethodNotAllowed (12)
- HTTPMisdirectedRequest (8)
- HTTPMovedPermanently (12)
- HTTPMovedTemporarily (12)
- HTTPMultiStatus (12)
- HTTPMultipleChoice (12)
- HTTPMultipleChoices (12)
- HTTPNetworkAuthenticationRequired (12)
- HTTPNoContent (12)
- HTTPNonAuthoritativeInformation (12)
- HTTPNotAcceptable (12)
- HTTPNotExtended (8)
- HTTPNotFound (12)
- HTTPNotImplemented (12)
- HTTPNotModified (12)
- HTTPOK (12)
- HTTPPartialContent (12)
- HTTPPayloadTooLarge (7)
- HTTPPaymentRequired (12)
- HTTPPermanentRedirect (11)
- HTTPPreconditionFailed (12)
- HTTPPreconditionRequired (12)
- HTTPProcessing (8)
- HTTPProxyAuthenticationRequired (12)
- HTTPRangeNotSatisfiable (7)
- HTTPRedirection (12)
- HTTPRequest (12)
- HTTPRequestEntityTooLarge (12)
- HTTPRequestHeaderFieldsTooLarge (12)
- HTTPRequestTimeOut (12)
- HTTPRequestTimeout (7)
- HTTPRequestURITooLarge (12)
- HTTPRequestURITooLong (12)
- HTTPRequestedRangeNotSatisfiable (12)
- HTTPResetContent (12)
- HTTPResponse (12)
- HTTPRetriableError (12)
- HTTPSeeOther (12)
- HTTPServerError (12)
- HTTPServerException (12)
- HTTPServiceUnavailable (12)
- HTTPSession (12)
- HTTPSuccess (12)
- HTTPSwitchProtocol (12)
- HTTPTemporaryRedirect (12)
- HTTPTooManyRequests (12)
- HTTPURITooLong (7)
- HTTPUnavailableForLegalReasons (9)
- HTTPUnknownResponse (12)
- HTTPUnprocessableEntity (12)
- HTTPUnsupportedMediaType (12)
- HTTPUpgradeRequired (12)
- HTTPUseProxy (12)
- HTTPVariantAlsoNegotiates (8)
- HTTPVersionNotSupported (12)
- Head (12)
- Lock (12)
- Mkcol (12)
- Move (12)
- Options (12)
- Patch (12)
- Post (12)
- Propfind (12)
- Proppatch (12)
- Proxy (12)
- Put (12)
- Trace (12)
- Unlock (12)
- [] (12)
- []= (12)
- active? (12)
-
add
_ field (12) - address (12)
-
basic
_ auth (12) - body (24)
- body= (12)
-
body
_ exist? (12) -
body
_ permitted? (12) -
body
_ stream (12) -
body
_ stream= (12) -
ca
_ file (12) -
ca
_ file= (12) -
ca
_ path (12) -
ca
_ path= (12) -
canonical
_ each (12) - cert (12)
- cert= (12)
-
cert
_ store (12) -
cert
_ store= (12) - chunked? (12)
- ciphers (12)
- ciphers= (12)
-
close
_ on _ empty _ response (12) -
close
_ on _ empty _ response= (12) - code (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (12) -
content
_ type= (12) -
continue
_ timeout (12) -
continue
_ timeout= (12) - copy (12)
-
default
_ port (12) - delete (24)
- each (12)
-
each
_ capitalized (12) -
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - entity (12)
- fetch (36)
- finish (12)
-
form
_ data= (12) - get (48)
- get2 (24)
-
get
_ fields (12) -
get
_ print (24) -
get
_ response (24) - head (12)
- head2 (24)
- header (12)
-
http
_ default _ port (12) -
http
_ version (12) -
https
_ default _ port (12) -
is
_ version _ 1 _ 1? (12) -
is
_ version _ 1 _ 2? (12) -
keep
_ alive _ timeout (12) -
keep
_ alive _ timeout= (12) - key (12)
- key= (12)
- key? (12)
- length (12)
-
local
_ host (12) -
local
_ host= (12) -
local
_ port (12) -
local
_ port= (12) - lock (12)
-
main
_ type (12) - method (24)
- mkcol (12)
- move (12)
- msg (12)
- new (24)
-
open
_ timeout (12) -
open
_ timeout= (12) - patch (24)
- path (12)
-
peer
_ cert (12) - port (12)
- post (24)
- post2 (24)
-
post
_ form (12) - propfind (12)
- proppatch (12)
- proxy? (12)
-
proxy
_ address (24) -
proxy
_ address= (12) -
proxy
_ basic _ auth (12) -
proxy
_ class? (12) -
proxy
_ from _ env= (12) -
proxy
_ from _ env? (12) -
proxy
_ pass (24) -
proxy
_ pass= (12) -
proxy
_ port (24) -
proxy
_ port= (12) -
proxy
_ uri (12) -
proxy
_ user (24) -
proxy
_ user= (12) - proxyaddr (12)
- proxyport (12)
- put (12)
- put2 (24)
- range (12)
- range= (24)
-
range
_ length (12) -
read
_ body (24) -
read
_ timeout (12) -
read
_ timeout= (12) -
reader
_ header (12) - request (24)
-
request
_ body _ permitted? (12) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) - response (24)
-
response
_ body _ permitted? (12) -
send
_ request (12) -
set
_ content _ type (12) -
set
_ debug _ output (12) -
set
_ form _ data (12) -
set
_ range (36) - size (12)
-
ssl
_ timeout (12) -
ssl
_ timeout= (12) -
ssl
_ version (12) -
ssl
_ version= (12) - start (48)
- started? (12)
-
sub
_ type (12) - trace (12)
-
type
_ params (12) - unlock (12)
-
use
_ ssl= (12) -
use
_ ssl? (12) - value (12)
-
verify
_ callback (12) -
verify
_ callback= (12) -
verify
_ depth (12) -
verify
_ depth= (12) -
verify
_ mode (12) -
verify
_ mode= (12) -
version
_ 1 _ 1? (12) -
version
_ 1 _ 2 (12) -
version
_ 1 _ 2? (12) -
write
_ timeout (7) -
write
_ timeout= (7)
検索結果
先頭5件
-
Net
:: HTTPInternalServerError (15002.0) -
HTTP レスポンス 500 (Internal Server Error) を表現するクラスです。
...HTTP レスポンス 500 (Internal Server Error) を表現するクラスです。
詳しくは 7231 Section 6.6.1 を見てください。... -
Net
:: HTTPServerError (12002.0) -
HTTP レスポンス 5xx (Server Error) を表現するクラスです。
...HTTP レスポンス 5xx (Server Error) を表現するクラスです。
サーバがエラーを起こしているなど、サーバ側で処理
を完了することができないことを表しています。... -
Net
:: HTTPHeader # content _ length=(len) (9302.0) -
Content-Length: ヘッダフィールドに値を設定します。
...ntent-Length: ヘッダフィールドに値を設定します。
len に nil を与えると Content-Length: ヘッダフィールドを
削除します。
@param len 設定する値を整数で与えます。
//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 # => 10
req.content_length # => 10
//}... -
Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse (9202.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...ath にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシ......est 利用しないでください。
1.1 互換モードの場合は、レスポンスに応じて例外が発生します。
また、返り値が [レスポンスオブジェクト, そのボディ] となります。
//emlist[例][ruby]{
# net/http version 1.1
response, body = http.get( '/inde.......html' )
# net/http version 1.2
response = http.get('/index.html')
# compatible in both version
response , = http.get('/index.html')
response.body
# compatible, using block
File.open('save.txt', 'w') {|f|
http.get('/~foo/', nil) do |str|
f.write str
end
}
//}
@see Net::HTTP#request_get... -
Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (9202.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...ath にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシ......est 利用しないでください。
1.1 互換モードの場合は、レスポンスに応じて例外が発生します。
また、返り値が [レスポンスオブジェクト, そのボディ] となります。
//emlist[例][ruby]{
# net/http version 1.1
response, body = http.get( '/inde.......html' )
# net/http version 1.2
response = http.get('/index.html')
# compatible in both version
response , = http.get('/index.html')
response.body
# compatible, using block
File.open('save.txt', 'w') {|f|
http.get('/~foo/', nil) do |str|
f.write str
end
}
//}
@see Net::HTTP#request_get... -
Net
:: HTTP # get2(path , header = nil) -> Net :: HTTPResponse (9202.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...th にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシュで......ともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズ......eader リクエストの HTTP ヘッダをハッシュで指定します。
//emlist[例][ruby]{
# example
response = http.request_get('/index.html')
p response['content-type']
puts response.body # body is already read
# using block
http.request_get('/index.html') {|response|
p response... -
Net
:: HTTP # get2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (9202.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...th にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシュで......ともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズ......eader リクエストの HTTP ヘッダをハッシュで指定します。
//emlist[例][ruby]{
# example
response = http.request_get('/index.html')
p response['content-type']
puts response.body # body is already read
# using block
http.request_get('/index.html') {|response|
p response... -
Net
:: HTTP . get _ response(host , path = nil , port = nil) -> Net :: HTTPResponse (9202.0) -
指定した対象に GET リクエストを送り、そのレスポンスを Net::HTTPResponse として返します。
...指定した対象に GET リクエストを送り、そのレスポンスを
Net::HTTPResponse として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。......@param host 接続先のホストを文字列で指定します。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP#get... -
Net
:: HTTP . get _ response(uri) -> Net :: HTTPResponse (9202.0) -
指定した対象に GET リクエストを送り、そのレスポンスを Net::HTTPResponse として返します。
...指定した対象に GET リクエストを送り、そのレスポンスを
Net::HTTPResponse として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。......@param host 接続先のホストを文字列で指定します。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP#get...