るりまサーチ

最速Rubyリファレンスマニュアル検索!
902件ヒット [1-100件を表示] (0.033秒)
トップページ > クエリ:request_uri[x]

別のキーワード

  1. request new
  2. request sign
  3. request verify
  4. request to_der
  5. http request_get

種類

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

URI::HTTP#request_uri -> String (18107.0)

自身の「path + '?' + query」を文字列で返します。 query が nil である場合は、自身の path を返します。

...す。
query が nil である場合は、自身の path を返します。

path が空である場合には、path は「'/'」であるとします。

例:
require 'uri'
u = URI.parse("http://example.com/search?q=xxx")
p u.request_uri #=> "/search?q=xxx"...

WEBrick::HTTPRequest#request_uri -> URI (18101.0)

リクエスト URI を表す URI オブジェクトを返します。

リクエスト URI を表す URI オブジェクトを返します。

WEBrick::HTTPResponse#request_uri -> URI | nil (18101.0)

リクエストの URI を返します。

リクエストの URI を返します。

WEBrick::HTTPResponse#request_uri=(uri) (6101.0)

リクエストの URI をセットします。 デフォルトは nil です。

リクエストの URI をセットします。
デフォルトは nil です。

@param uri リクエストの URI を URI オブジェクトで指定します。

WEBrick::HTTPStatus::RC_REQUEST_URI_TOO_LARGE (3101.0)

HTTP のステータスコードを表す整数です。

HTTP のステータスコードを表す整数です。

require 'webrick'
p WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR #=> 500

絞り込み条件を変える

Net::HTTPHeader#fetch(key) -> String (18.0)

key ヘッダフィールドを返します。

...のみ指定。key が存在する][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}

//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'

begin
req.fetch(...
...l')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}

//emlist[例 key とブロックを指定][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length") {...

Net::HTTPHeader#fetch(key) {|hash| .... } -> String (18.0)

key ヘッダフィールドを返します。

...のみ指定。key が存在する][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}

//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'

begin
req.fetch(...
...l')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}

//emlist[例 key とブロックを指定][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length") {...

Net::HTTPHeader#fetch(key, default) -> String (18.0)

key ヘッダフィールドを返します。

...のみ指定。key が存在する][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}

//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'

begin
req.fetch(...
...l')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}

//emlist[例 key とブロックを指定][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length") {...

WEBrick::HTTPRequest#query_string -> String (16.0)

リクエスト URI のクエリーを文字列で表すアクセサです。 デフォルトは request_uri.query です。

...リクエスト URI のクエリーを文字列で表すアクセサです。
デフォルトは request_uri.query です。...

WEBrick::HTTPRequest#query_string=(value) (16.0)

リクエスト URI のクエリーを文字列で表すアクセサです。 デフォルトは request_uri.query です。

...リクエスト URI のクエリーを文字列で表すアクセサです。
デフォルトは request_uri.query です。

@param value クエリーを表す文字列を指定します。...

絞り込み条件を変える

<< 1 2 3 ... > >>