種類
- インスタンスメソッド (648)
- 特異メソッド (36)
- ライブラリ (24)
- モジュール関数 (12)
ライブラリ
- drb (24)
-
drb
/ extservm (12) -
net
/ http (588) - open-uri (12)
-
rinda
/ rinda (12) - uri (36)
-
webrick
/ httpresponse (12)
クラス
-
DRb
:: DRbServer (12) -
DRb
:: ExtServManager (12) -
Net
:: HTTPGenericRequest (96) -
Net
:: HTTPResponse (108) -
Rinda
:: DRbObjectTemplate (12) -
URI
:: Generic (24) -
WEBrick
:: HTTPResponse (12)
モジュール
- DRb (12)
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (372) -
OpenURI
:: OpenRead (12) - URI (12)
キーワード
- [] (12)
- []= (12)
-
basic
_ auth (12) - body (24)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - chunked? (12)
- code (12)
- coerce (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (12) -
content
_ type= (12) - delete (12)
- each (12)
-
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - entity (12)
- fetch (36)
-
form
_ data= (12) -
get
_ fields (12) -
http
_ version (12) - key? (12)
-
main
_ type (12) - method (24)
- msg (12)
- new (24)
- open-uri (12)
- parse (12)
- path (12)
-
proxy
_ basic _ auth (12) - range (12)
-
range
_ length (12) - read (12)
-
read
_ body (24) -
request
_ body _ permitted? (12) -
request
_ uri= (12) - response (12)
-
response
_ body _ permitted? (12) -
rinda
/ rinda (12) - select (12)
-
set
_ content _ type (12) -
set
_ form _ data (12) -
start
_ service (12) -
sub
_ type (12) -
type
_ params (12) - value (12)
検索結果
先頭5件
-
Net
:: HTTPGenericRequest # body=(body) (6.0) -
サーバに送るリクエストのエンティティボディを文字列で設定します。
...ディを文字列で設定します。
@param body 設定するボディを文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.body = "Test Post Data" # => "Test Post Data"
//}
@s... -
Net
:: HTTPGenericRequest # body _ stream -> object (6.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...aram f エンティティボディのデータを得るストリームオブジェクトを与えます。
//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) (6.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...aram f エンティティボディのデータを得るストリームオブジェクトを与えます。
//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 # method -> String (6.0) -
リクエストの HTTP メソッドを文字列で返します。
...リクエストの HTTP メソッドを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.method # => "POST"
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}... -
Net
:: HTTPGenericRequest # path -> String (6.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
:: HTTPGenericRequest # request _ body _ permitted? -> bool (6.0) -
リクエストにエンティティボディを一緒に送ることが許されている HTTP メソッド (POST など)の場合真を返します。
...一緒に送ることが許されている
HTTP メソッド (POST など)の場合真を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
post.request_body_permitted? # => true
head = Net::HT... -
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (6.0) -
サーバからのレスポンスにエンティティボディを含むことが許されている HTTP メソッド (GET, POST など)の場合真を返します。
...ィを含むことが許されている
HTTP メソッド (GET, POST など)の場合真を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
post.response_body_permitted? # => true
head = Net:... -
Net
:: HTTPHeader # [](key) -> String|nil (6.0) -
key ヘッダフィールドを返します。
...'2048'
のような文字列が得られます。キーが存在しなければ 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) (6.0) -
key ヘッダフィールドに文字列 val をセットします。
...与えます。
@param val keyで指定したフィールドにセットする文字列を与えます。
//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"...