ライブラリ
- ビルトイン (26)
- drb (66)
-
drb
/ extservm (22) -
net
/ http (550) - open-uri (121)
-
rexml
/ document (99) -
rexml
/ parsers / sax2parser (55) -
rexml
/ sax2listener (44) -
rexml
/ streamlistener (22) - rss (11)
-
rubygems
/ dependency _ installer (22) -
rubygems
/ remote _ fetcher (143) -
rubygems
/ security (198) -
rubygems
/ server (66) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache _ entry (11) -
rubygems
/ spec _ fetcher (33) -
rubygems
/ specification (22) - uri (693)
-
webrick
/ httprequest (99) -
webrick
/ httpresponse (22) - win32ole (11)
クラス
-
DRb
:: DRbObject (44) -
DRb
:: DRbServer (22) -
DRb
:: ExtServManager (22) -
Gem
:: DependencyInstaller (22) -
Gem
:: RemoteFetcher (132) -
Gem
:: RemoteFetcher :: FetchError (11) -
Gem
:: Security :: Policy (143) -
Gem
:: Security :: Signer (55) -
Gem
:: Server (66) -
Gem
:: SourceIndex (11) -
Gem
:: SourceInfoCacheEntry (11) -
Gem
:: SpecFetcher (33) -
Gem
:: Specification (22) -
Net
:: HTTP (11) -
Net
:: HTTPGenericRequest (88) -
Net
:: HTTPResponse (99) - Object (26)
-
REXML
:: Attribute (11) -
REXML
:: Attributes (22) -
REXML
:: Element (44) -
REXML
:: Entity (11) -
REXML
:: NotationDecl (11) -
REXML
:: Parsers :: SAX2Parser (55) -
RSS
:: NSError (11) -
URI
:: FTP (22) -
URI
:: Generic (484) -
URI
:: HTTP (11) -
URI
:: LDAP (110) -
URI
:: MailTo (66) -
WEBrick
:: HTTPRequest (99) -
WEBrick
:: HTTPResponse (22) -
WIN32OLE
_ EVENT (11)
モジュール
-
Gem
:: LocalRemoteOptions (11) -
Net
:: HTTPExceptions (11) -
Net
:: HTTPHeader (341) -
OpenURI
:: Meta (88) -
OpenURI
:: OpenRead (33) -
REXML
:: SAX2Listener (44) -
REXML
:: StreamListener (22)
キーワード
- + (11)
- - (11)
- == (22)
- Marshal (11)
- [] (11)
- []= (11)
-
_ _ drbref (11) -
_ _ drburi (11) - absolute (11)
- absolute? (11)
-
accept
_ uri _ http (11) -
add
_ namespace (22) - attribute (11)
- attributes (11)
- attributes= (11)
-
base
_ uri (11) -
basic
_ auth (11) - body (22)
- body= (11)
-
body
_ stream (11) -
body
_ stream= (11) -
cache
_ dir (11) -
cert
_ chain (11) -
cert
_ chain= (11) - charset (22)
- chunked? (11)
- code (11)
- coerce (11)
- component (11)
-
connection
_ for (11) -
content
_ encoding (11) -
content
_ length (11) -
content
_ length= (11) -
content
_ range (11) -
content
_ type (22) -
content
_ type= (11) -
default
_ port (11) - delete (11)
- dn (11)
- dn= (11)
- doctype (22)
- download (11)
- each (11)
-
each
_ capitalized _ name (11) -
each
_ header (11) -
each
_ key (11) -
each
_ name (11) -
each
_ value (11) -
end
_ element (11) - entity (11)
- eql? (11)
- escape (11)
- extensions (11)
- extensions= (11)
- fetch (33)
-
fetch
_ path (11) -
fetch
_ size (11) -
fetch
_ spec (11) -
file
_ uri? (11) - filter (11)
- filter= (11)
-
find
_ gems _ with _ sources (11) -
find
_ proxy (11) -
find
_ spec _ by _ name _ and _ version (11) -
form
_ data= (11) - fragment (11)
- fragment= (11)
-
get
_ attribute _ ns (11) -
get
_ fields (11) -
get
_ file _ uri _ path (11) -
get
_ proxy _ from _ env (11) - handler= (11)
- headers (11)
- headers= (11)
- here? (11)
- hierarchical? (11)
- homepage (11)
- homepage= (11)
- host (22)
- host= (11)
- hostname (11)
- hostname= (11)
-
http
_ version (11) - key (11)
- key= (11)
- key? (11)
-
last
_ modified (11) -
latest
_ specs (11) - listen (55)
-
load
_ specs (11) -
main
_ type (11) - merge (11)
- merge! (11)
- method (22)
- msg (11)
- namespace (22)
- namespaces (11)
- normalize (11)
- normalize! (11)
-
normalize
_ uri (11) - notationdecl (11)
-
only
_ signed (11) -
only
_ signed= (11) -
only
_ trusted (11) -
only
_ trusted= (11) - opaque (11)
- opaque= (11)
- open (22)
-
open
_ uri _ or _ path (11) - parser (11)
- password (11)
- password= (11)
- path (33)
- path= (11)
-
path
_ info (11) -
path
_ info= (11) - port (11)
- port= (11)
-
proxy
_ basic _ auth (11) -
proxy
_ uri (11) - query (11)
- query= (11)
-
query
_ string (11) -
query
_ string= (11) - quick (11)
- range (11)
-
range
_ length (11) - read (11)
-
read
_ body (22) - ref (11)
- refresh (11)
- registry (11)
- registry= (11)
- relative? (11)
- request (11)
-
request
_ body _ permitted? (11) -
request
_ uri (33) -
request
_ uri= (11) - response (11)
-
response
_ body _ permitted? (11) - root (11)
-
route
_ from (11) -
route
_ to (11) - scheme (11)
- scheme= (11)
- scope (11)
- scope= (11)
- select (11)
-
set
_ content _ type (11) -
set
_ form _ data (11) - sign (11)
- specs (11)
- ssl? (11)
-
start
_ element (11) -
start
_ prefix _ mapping (11) - status (11)
-
sub
_ type (11) - system (11)
- then (12)
- to (11)
- to= (11)
-
to
_ mailtext (11) -
to
_ rfc822text (11) -
to
_ s (11) -
type
_ params (11) - typecode (11)
- typecode= (11)
- unescape (11)
-
unparsed
_ uri (11) - update (11)
- uri= (11)
- user (11)
- user= (11)
- userinfo (11)
- userinfo= (11)
- value (11)
-
verify
_ chain (11) -
verify
_ chain= (11) -
verify
_ data (11) -
verify
_ data= (11) -
verify
_ gem (11) -
verify
_ root (11) -
verify
_ root= (11) -
verify
_ signer (11) -
verify
_ signer= (11) - yaml (11)
-
yield
_ self (14)
検索結果
先頭5件
-
Net
:: HTTPGenericRequest # body _ stream -> object (25.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...を得るストリームオブジェクトを与えます。
//emlist[例][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|
# 大きなファイルを扱う際にメモリ消費を... -
Net
:: HTTPGenericRequest # body _ stream=(f) (25.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...を得るストリームオブジェクトを与えます。
//emlist[例][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|
# 大きなファイルを扱う際にメモリ消費を... -
Net
:: HTTPGenericRequest # path -> String (25.0) -
リクエストする path を文字列で返します。
...リクエストする path を文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.path # => "/index.html"
//}... -
Net
:: HTTPHeader # [](key) -> String|nil (25.0) -
key ヘッダフィールドを返します。
...ます。キーが存在しなければ nil を返します。
//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
//}
一種類のヘッダフィールドが一つのヘッダの中に... -
Net
:: HTTPHeader # []=(key , val) (25.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::... -
Net
:: HTTPHeader # basic _ auth(account , password) -> [String] (25.0) -
Authorization: ヘッダを BASIC 認証用にセットします。
...ト名を文字列で与えます。
@param password パスワードを文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.basic_auth("user", "pass") # => ["Basic dXNlcjpwYXNz"]
//}... -
Net
:: HTTPHeader # chunked? -> bool (25.0) -
Transfer-Encoding: ヘッダフィールドが "chunked" である 場合に真を返します。
...ったり、
"chunked" 以外である場合には偽を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.chunked? # => false
req["Transfer-Encoding"] = "chunked"
req.chunked? # => true
//}... -
Net
:: HTTPHeader # content _ length -> Integer|nil (25.0) -
Content-Length: ヘッダフィールドの表している値を整数で返します。
...正である場合に
発生します。
//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
:: HTTPHeader # content _ length=(len) (25.0) -
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
:: HTTPHeader # content _ range -> Range|nil (25.0) -
Content-Range: ヘッダフィールドの値を Range で返します。 Range の表わす長さは Net::HTTPHeader#range_length で得られます。
...が設定されていない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.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 # =...