3560件ヒット
[1-100件を表示]
(0.130秒)
ライブラリ
-
net
/ http (3455)
クラス
-
Net
:: HTTP (1478) -
Net
:: HTTPGenericRequest (108) -
Net
:: HTTPRequest (12) -
Net
:: HTTPResponse (180)
モジュール
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (492)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
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)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 4 . 0 (9) - 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)
-
net
/ https (12) -
net
/ protocol (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) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 9 feature (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
/ http (44048.0) -
汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。
...ル HTTP を扱うライブラリです。
実装は 2616 に基きます。
=== 使用例
==== ウェブサーバからドキュメントを得る (GET)
//emlist[例1: GET して 表示するだけ][ruby]{
require 'net/http'
print Net::HTTP.get('www.example.com', '/index.html')
//}
//emlist[例......net/http'
require 'uri'
print Net::HTTP.get(URI.parse('http://www.example.com/index.html'))
//}
//emlist[例3: より汎用的な例][ruby]{
require 'net/http'
require 'uri'
url = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.start(url.host, url.port) {|http|
http.get('/index.ht......ml')
}
puts res.body
//}
//emlist[例4: 上の例よりさらに汎用的な例][ruby]{
require 'net/http'
url = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(url.path)
res = Net::HTTP.start(url.host, url.port) {|http|
http.request(req)
}
puts res.body
//}
==== フォ... -
Net
:: HTTPHeader # set _ content _ type(type , params = {}) (17206.0) -
type と params から Content-Type: ヘッダフィールドの 値を設定します。
...type と params から Content-Type: ヘッダフィールドの
値を設定します。
@param type メディアタイプを文字列で指定します。
@param params パラメータ属性をハッシュで指定します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.......example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data' # => "multipart/form-data"
req.content_type # => "multipart/form-data"
//}... -
Net
:: HTTP # continue _ timeout -> Integer | nil (17200.0) -
「100 Continue」レスポンスを待つ秒数を返します。
...「100 Continue」レスポンスを待つ秒数を返します。
この秒数待ってもレスポンスが来ない場合は
リクエストボディを送信します。
デフォルトは nil (待たない)です。
@see Net::HTTP#continue_timeout=... -
Net
:: HTTP # continue _ timeout=(seconds) (17200.0) -
「100 Continue」レスポンスを待つ秒数を指定します。
...「100 Continue」レスポンスを待つ秒数を指定します。
この秒数待ってもレスポンスが来ない場合は
リクエストボディを送信します。
デフォルトは nil (待たない)です。
@param seconds 秒数
@see Net::HTTP#continue_timeout... -
Net
:: HTTPRequestTimeOut (17000.0) -
HTTP レスポンス 408 (Request Timeout) を表現するクラスです。
...HTTP レスポンス 408 (Request Timeout) を表現するクラスです。
詳しくは 7231 Section 6.5.7 を見てください。......Alias of Net::HTTPRequestTimeout... -
Net
:: HTTPRequestTimeout (17000.0) -
HTTP レスポンス 408 (Request Timeout) を表現するクラスです。
...HTTP レスポンス 408 (Request Timeout) を表現するクラスです。
詳しくは 7231 Section 6.5.7 を見てください。... -
Net
:: HTTPHeader # content _ length -> Integer|nil (14206.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
//}... -
Net
:: HTTP # ca _ path=(path) (14200.0) -
信頼する CA 証明書ファイルが存在するディレクトリを設定します。
...イル名はハッシュ値の文字列にしなければなりません。
詳しくは OpenSSL::SSL::SSLContext#ca_path= を見てください。
デフォルトは nil (指定なし)です。
@param path ディレクトリ名文字列
@see Net::HTTP#ca_path, OpenSSL::SSL::SSLContext#ca_path=... -
Net
:: HTTP # verify _ depth=(depth) (14200.0) -
証明書チェイン上の検証する最大の深さを設定します。
...証明書チェイン上の検証する最大の深さを設定します。
デフォルトは nil で、この場合 OpenSSL のデフォルト値(9)が使われます。
@param depth 最大深さを表す整数
@see Net::HTTP#verify_depth, OpenSSL::SSL::SSLContext#verify_depth=...