209件ヒット
[1-100件を表示]
(0.115秒)
ライブラリ
-
net
/ http (143) - uri (11)
-
webrick
/ httprequest (33) -
webrick
/ httpresponse (22)
クラス
-
Net
:: HTTPGenericRequest (88) -
URI
:: HTTP (11) -
WEBrick
:: HTTPRequest (33) -
WEBrick
:: HTTPResponse (22)
モジュール
-
Net
:: HTTPHeader (55)
キーワード
- body (11)
- body= (11)
-
body
_ stream (11) -
body
_ stream= (11) - each (11)
-
each
_ header (11) -
each
_ value (11) -
form
_ data= (11) - method (11)
- path (11)
-
query
_ string (11) -
query
_ string= (11) -
request
_ body _ permitted? (11) -
request
_ uri= (11) -
response
_ body _ permitted? (11) -
set
_ form _ data (11)
検索結果
先頭5件
-
WEBrick
:: HTTPRequest # request _ uri -> URI (27202.0) -
リクエスト URI を表す URI オブジェクトを返します。
リクエスト URI を表す URI オブジェクトを返します。 -
URI
:: HTTP # request _ uri -> String (24220.0) -
自身の「path + '?' + query」を文字列で返します。 query が nil である場合は、自身の path を返します。
...path + '?' + query」を文字列で返します。
query が nil である場合は、自身の path を返します。
path が空である場合には、path は「'/'」であるとします。
例:
require 'uri'
u = URI.parse("http://example.com/search?q=xxx")
p u.request_uri......#=> "/search?q=xxx"... -
WEBrick
:: HTTPResponse # request _ uri -> URI | nil (24202.0) -
リクエストの URI を返します。
リクエストの URI を返します。 -
WEBrick
:: HTTPResponse # request _ uri=(uri) (12202.0) -
リクエストの URI をセットします。 デフォルトは nil です。
リクエストの URI をセットします。
デフォルトは nil です。
@param uri リクエストの URI を URI オブジェクトで指定します。 -
WEBrick
:: HTTPRequest # query _ string -> String (9117.0) -
リクエスト URI のクエリーを文字列で表すアクセサです。 デフォルトは request_uri.query です。
...リクエスト URI のクエリーを文字列で表すアクセサです。
デフォルトは request_uri.query です。... -
WEBrick
:: HTTPRequest # query _ string=(value) (9117.0) -
リクエスト URI のクエリーを文字列で表すアクセサです。 デフォルトは request_uri.query です。
...リクエスト URI のクエリーを文字列で表すアクセサです。
デフォルトは request_uri.query です。
@param value クエリーを表す文字列を指定します。... -
Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool (9113.0) -
リクエストにエンティティボディを一緒に送ることが許されている 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::HTTP::Head.new(uri.request_uri)
head.request_body_permitted? # => false
//}... -
Net
:: HTTPGenericRequest # method -> String (3013.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 # response _ body _ permitted? -> bool (3013.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
//}... -
Net
:: HTTPGenericRequest # body -> String (3007.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=...