2160件ヒット
[1-100件を表示]
(0.130秒)
クラス
-
Net
:: HTTP (974) -
Net
:: HTTPGenericRequest (108) -
Net
:: HTTPRequest (12) -
Net
:: HTTPResponse (36)
モジュール
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (360)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
CODE
_ CLASS _ TO _ OBJ (12) -
CODE
_ TO _ OBJ (12) - Copy (12)
- HTTPAccepted (12)
- HTTPClientError (12)
- HTTPClientException (7)
- HTTPConflict (12)
- HTTPContinue (12)
- HTTPCreated (12)
- HTTPExceptions (12)
- HTTPExpectationFailed (12)
- HTTPFailedDependency (12)
- HTTPGatewayTimeOut (7)
- HTTPGenericRequest (12)
- HTTPInsufficientStorage (12)
- HTTPLocked (12)
- HTTPLoopDetected (8)
- HTTPMisdirectedRequest (8)
- HTTPMovedTemporarily (12)
- HTTPMultipleChoice (12)
- HTTPMultipleChoices (12)
- HTTPNetworkAuthenticationRequired (12)
- HTTPNoContent (12)
- HTTPNotAcceptable (12)
- HTTPPartialContent (12)
- HTTPPermanentRedirect (11)
- HTTPPreconditionFailed (12)
- HTTPPreconditionRequired (12)
- HTTPProcessing (8)
- HTTPProxyAuthenticationRequired (12)
- HTTPRedirection (12)
- HTTPRequest (12)
- HTTPRequestEntityTooLarge (7)
- HTTPRequestTimeOut (7)
- HTTPRequestURITooLarge (12)
- HTTPRequestURITooLong (7)
- HTTPRequestedRangeNotSatisfiable (7)
- HTTPResetContent (12)
- HTTPServerException (12)
- HTTPServiceUnavailable (12)
- HTTPSession (12)
- HTTPSuccess (12)
- HTTPSwitchProtocol (12)
- HTTPTemporaryRedirect (12)
- HTTPUnprocessableEntity (12)
- Lock (12)
- Mkcol (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) - OCSP (12)
- Patch (12)
- Proppatch (12)
- Proxy (12)
- Trace (12)
- Unlock (12)
- active? (12)
-
add
_ field (12) -
basic
_ auth (12) - body (12)
- body= (12)
-
body
_ exist? (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)
- delete (12)
- each (12)
-
each
_ capitalized (12) -
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - fetch (36)
-
form
_ data= (12) - get (48)
- get2 (24)
-
get
_ print (24) -
get
_ response (24) - head (12)
- head2 (24)
-
keep
_ alive _ timeout= (12) - key= (12)
-
local
_ host (12) -
local
_ host= (12) -
local
_ port (12) -
local
_ port= (12) - lock (12)
- method (12)
- mkcol (12)
- move (12)
-
net
/ protocol (12) - new (24)
-
open
_ timeout (12) -
open
_ timeout= (12) - patch (24)
- path (12)
-
peer
_ cert (12) - post (24)
- post2 (24)
-
post
_ form (12) - propfind (12)
- proppatch (12)
-
proxy
_ basic _ auth (12) -
proxy
_ class? (12) - put (12)
- put2 (24)
- range (12)
- range= (24)
-
read
_ timeout (12) -
read
_ timeout= (12) - request (24)
-
request
_ body _ permitted? (12) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) - response (12)
-
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
_ form _ data (12) -
set
_ range (36) -
ssl
_ timeout= (12) - start (36)
- started? (12)
- trace (12)
-
type
_ params (12) - unlock (12)
-
verify
_ callback (12) -
verify
_ callback= (12) -
write
_ timeout (7) -
write
_ timeout= (7)
検索結果
先頭5件
-
net
/ http (38066.0) -
汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。
...y]{
require 'net/http'
print Net::HTTP.get('www.example.com', '/index.html')
//}
//emlist[例2: URI を使う][ruby]{
require 'net/http'
require 'uri'
print Net::HTTP.get(URI.parse('http://www.example.com/index.html'))
//}
//emlist[例3: より汎用的な例][ruby]{
require 'net/http'
require 'ur......= URI.parse('http://www.example.com/index.html')
res = Net::HTTP.start(url.host, url.port) {|http|
http.get('/index.html')
}
puts res.body
//}
//emlist[例4: 上の例よりさらに汎用的な例][ruby]{
require 'net/http'
url = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::......'net/http'
require 'uri'
#例1: POSTするだけ
res = Net::HTTP.post_form(URI.parse('http://www.example.com/search'),
{'q'=>'ruby', 'max'=>'50'})
puts res.body
#例2: 認証付きで POST する
res = Net::HTTP.post_form(URI.parse('http://jack:pass@www.example.com/todo.c... -
Net
:: HTTPHeader # canonical _ each {|name , value| . . . . } -> () (20200.0) -
ヘッダフィールドの正規化名とその値のペアを ブロックに渡し、呼びだします。
...ヘッダフィールドの正規化名とその値のペアを
ブロックに渡し、呼びだします。
正規化名は name に対し
name.downcase.split(/-/).capitalize.join('-')
で求まる文字列です。... -
Net
:: HTTPHeader # each _ capitalized {|name , value| . . . . } -> () (17100.0) -
ヘッダフィールドの正規化名とその値のペアを ブロックに渡し、呼びだします。
...ヘッダフィールドの正規化名とその値のペアを
ブロックに渡し、呼びだします。
正規化名は name に対し
name.downcase.split(/-/).capitalize.join('-')
で求まる文字列です。... -
Net
:: HTTP # cert=(certificate) (14206.0) -
クライアント証明書を設定します。
...クライアント証明書を設定します。
デフォルトは nil (クライアント証明書による認証をしない)です。
@param certificate 証明書オブジェクト(OpenSSL::X509::Certificate)
@see Net::HTTP#cert, OpenSSL::SSL::SSLContext#cert=... -
Net
:: HTTP # cert -> OpenSSL :: X509 :: Certificate | nil (14200.0) -
クライアント証明書を返します。
...クライアント証明書を返します。
@see Net::HTTP#cert=, OpenSSL::SSL::SSLContext#cert... -
Net
:: HTTP # ciphers=(ciphers) (14200.0) -
利用可能な共通鍵暗号を設定します。
...利用可能な共通鍵暗号を設定します。
OpenSSL::SSL::SSLContext#ciphers= と同じ形式で
設定します。詳しくはそちらを参照してください。
@param ciphers 利用可能にする共通鍵暗号の種類
@see Net::HTTP#ciphers... -
Net
:: HTTP # continue _ timeout=(seconds) (14200.0) -
「100 Continue」レスポンスを待つ秒数を指定します。
...「100 Continue」レスポンスを待つ秒数を指定します。
この秒数待ってもレスポンスが来ない場合は
リクエストボディを送信します。
デフォルトは nil (待たない)です。
@param seconds 秒数
@see Net::HTTP#continue_timeout... -
Net
:: HTTP # peer _ cert -> OpenSSL :: X509 :: Certificate | nil (14200.0) -
サーバの証明書を返します。
...サーバの証明書を返します。
SSL/TLS が有効でなかったり、接続前である場合には nil
を返します。
@see OpenSSL::SSL::SSLSocket#peer_cert... -
Net
:: HTTPHeader # fetch(key) -> String (14124.0) -
key ヘッダフィールドを返します。
...key ヘッダフィールドを返します。
たとえばキー 'content-length' に対しては '2048'
のような文字列が得られます。キーが存在しなければ nil を返します。
該当するキーが登録されてい
ない時には、引数 default が与えられてい......uby]{
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")
rescue => e
e # =......> #<KeyError: key not found: "content-length">
end
//}
//emlist[例 key , default を指定][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 とブ...