429件ヒット
[101-200件を表示]
(0.183秒)
ライブラリ
-
net
/ http (374) - uri (11)
-
webrick
/ httprequest (22) -
webrick
/ httpresponse (22)
クラス
-
Net
:: HTTPGenericRequest (88) -
URI
:: HTTP (11) -
WEBrick
:: HTTPRequest (22) -
WEBrick
:: HTTPResponse (22)
モジュール
-
Net
:: HTTPHeader (286)
キーワード
- [] (11)
- []= (11)
-
basic
_ auth (11) - body (11)
- body= (11)
-
body
_ stream (11) -
body
_ stream= (11) - chunked? (11)
-
content
_ length (11) -
content
_ length= (11) -
content
_ range (11) -
content
_ type (11) -
content
_ type= (11) - delete (11)
- each (11)
-
each
_ capitalized _ name (11) -
each
_ header (11) -
each
_ key (11) -
each
_ name (11) -
each
_ value (11) - fetch (33)
-
form
_ data= (11) - method (22)
- path (11)
-
proxy
_ basic _ auth (11) -
query
_ string (11) -
query
_ string= (11) - range (11)
-
range
_ length (11) -
request
_ body _ permitted? (11) -
request
_ uri= (11) -
response
_ body _ permitted? (11) -
set
_ content _ type (11) -
set
_ form _ data (11)
検索結果
先頭5件
-
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (9113.0) -
サーバからのレスポンスにエンティティボディを含むことが許されている 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::HTTP::Head.new(uri.request_uri)
head.response_body_permitted? # => false
//}... -
WEBrick
:: HTTPResponse # request _ uri=(uri) (9102.0) -
リクエストの URI をセットします。 デフォルトは nil です。
...リクエストの URI をセットします。
デフォルトは nil です。
@param uri リクエストの URI を URI オブジェクトで指定します。... -
WEBrick
:: HTTPRequest # query _ string -> String (6217.0) -
リクエスト URI のクエリーを文字列で表すアクセサです。 デフォルトは request_uri.query です。
...リクエスト URI のクエリーを文字列で表すアクセサです。
デフォルトは request_uri.query です。... -
Net
:: HTTPHeader # range -> Range|nil (6213.0) -
Range: ヘッダの示す範囲を Range オブジェクトで返します。
...Range: ヘッダの示す範囲を Range オブジェクトで返します。
ヘッダにない場合は nil を返します。
@raise Net::HTTPHeaderSyntaxError Range:ヘッダの中身が規格通り
でない場合に発生します。
//emlist[例 正常な......uire 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req['range'] = "bytes=1-5"
req.range # => [1..5]
//}
//emlist[例 Net::HTTPHeaderSyntaxError][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HT......TP::Get.new(uri.request_uri)
req['range'] = "invalid"
req.range # => Net::HTTPHeaderSyntaxError
//}... -
Net
:: HTTPHeader # each _ capitalized _ name {|name| . . . . } -> () (6207.0) -
保持しているヘッダ名を正規化 ('x-my-header' -> 'X-My-Header') して、ブロックに渡します。
...er' -> 'X-My-Header')
して、ブロックに渡します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_capitalized_name { |key| puts key }
# => Accept-Encoding
# => Accept
# => User-Agent
//}... -
Net
:: HTTPHeader # each _ name {|name| . . . } -> () (6207.0) -
保持しているヘッダ名をブロックに渡して呼びだします。
...呼びだします。
ヘッダ名は小文字で統一されます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_name { |name| puts name }
# => accept-encoding
# => accept
# => user-agent
//}... -
WEBrick
:: HTTPRequest # query _ string=(value) (6117.0) -
リクエスト URI のクエリーを文字列で表すアクセサです。 デフォルトは request_uri.query です。
...リクエスト URI のクエリーを文字列で表すアクセサです。
デフォルトは request_uri.query です。
@param value クエリーを表す文字列を指定します。... -
Net
:: HTTPGenericRequest # method -> String (6113.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 # body -> String (6107.0) -
サーバに送るリクエストのエンティティボディを返します。
...クエストのエンティティボディを返します。
//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"
req.body # => "Test Post Data"
//}
@see Net::HTTPGenericRequest#body=... -
Net
:: HTTPGenericRequest # path -> String (6107.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"
//}...