1999件ヒット
[1901-1999件を表示]
(0.026秒)
種類
- インスタンスメソッド (1627)
- 特異メソッド (312)
- 定数 (24)
- クラス (24)
- モジュール (12)
クラス
-
Net
:: HTTP (1195) -
Net
:: HTTPGenericRequest (96) -
Net
:: HTTPRequest (12) -
Net
:: HTTPResponse (180)
モジュール
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (468)
キーワード
-
CODE
_ CLASS _ TO _ OBJ (12) -
CODE
_ TO _ OBJ (12) - HTTPHeader (12)
- HTTPMultiStatus (12)
- HTTPNonAuthoritativeInformation (12)
- Proxy (12)
- [] (12)
- []= (12)
- active? (12)
-
add
_ field (12) - address (12)
-
basic
_ auth (12) - body (24)
-
body
_ exist? (12) -
body
_ permitted? (12) -
body
_ stream (12) -
body
_ stream= (12) -
ca
_ file (12) -
ca
_ path (12) -
canonical
_ each (12) - cert (12)
-
cert
_ store (12) - chunked? (12)
- ciphers (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) - 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)
- length (12)
-
local
_ host (12) -
local
_ port (12) - lock (12)
-
main
_ type (12) - method (24)
- mkcol (12)
- move (12)
- msg (12)
- new (24)
-
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
_ basic _ auth (12) -
proxy
_ class? (12) -
proxy
_ from _ env? (12) -
proxy
_ pass (24) -
proxy
_ port (24) -
proxy
_ uri (12) -
proxy
_ user (24) - proxyaddr (12)
- proxyport (12)
- put (12)
- put2 (24)
- range (12)
-
range
_ length (12) -
read
_ body (24) -
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
_ version (12) - start (48)
- started? (12)
-
sub
_ type (12) - trace (12)
-
type
_ params (12) - unlock (12)
-
use
_ ssl? (12) - value (12)
-
verify
_ callback (12) -
verify
_ depth (12) -
verify
_ mode (12) -
version
_ 1 _ 1? (12) -
version
_ 1 _ 2 (12) -
version
_ 1 _ 2? (12) -
write
_ timeout (7)
検索結果
先頭5件
-
Net
:: HTTPHeader # content _ type=(type) (36.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
:: HTTPHeader # set _ content _ type(type , params = {}) (36.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 # keep _ alive _ timeout=(seconds) (24.0) -
以前のリクエストで使ったコネクションの再利用(keep-alive)を許可する秒数を 設定します。
...ションの再利用(keep-alive)を許可する秒数を
設定します。
この秒数以内に同じホストに次のリクエストを送った場合、
ソケットを再利用します。
デフォルトは2(秒)です。これは一般的にサーバ側の keep-alive の秒数
が2秒で... -
Net
:: HTTPHeader # content _ length=(len) (24.0) -
Content-Length: ヘッダフィールドに値を設定します。
...Content-Length: ヘッダフィールドに値を設定します。
len に nil を与えると Content-Length: ヘッダフィールドを
削除します。
@param len 設定する値を整数で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/ind... -
Net
:: HTTPHeader # []=(key , val) (20.0) -
key ヘッダフィールドに文字列 val をセットします。
...る文字列を与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req['user-agent'] # => Ruby
req['user-agent'] = "update"
req['user-agent'] # => update
//}
@see Net::HTTPHeader#[] ,
Net::HTTP... -
Net
:: HTTPMultiStatus (18.0) -
HTTP レスポンス 207 (Multi-Status) を表現するクラスです。
...HTTP レスポンス 207 (Multi-Status) を表現するクラスです。
詳しくは 4918 を見てください。... -
Net
:: HTTPNonAuthoritativeInformation (18.0) -
HTTP レスポンス 203 (Non-Authoritative Information) を表現するクラスです。
...HTTP レスポンス 203 (Non-Authoritative Information) を表現するクラスです。
詳しくは 7231 Section 6.3.4 を見てください。... -
Net
:: HTTPGenericRequest # body _ stream=(f) (8.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
File.open("/path/to/test", 'rb') do |f|
# 大きなファイルを扱う際にメモリ消費を少なくできる
post.body_stream = f
post["Content-Length"] = f.size... -
Net
:: HTTPHeader (8.0) -
HTTP ヘッダのためのモジュールです。
...HTTP ヘッダのためのモジュールです。
このモジュールを mix-in に @header という(ハッシュを代入してある)
変数への「大文字小文字を無視した」ハッシュ的アクセスメソッドを
提供します。またよくある HTTP ヘッダへの便利...