るりまサーチ

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

別のキーワード

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

検索結果

<< 1 2 3 ... > >>

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

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

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

Net::HTTPHeader#content_length=(len) (6206.0)

Content-Length: ヘッダフィールドに値を設定します。

...-Length: ヘッダフィールドに値を設定します。

l
en に nil を与えると 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#each_value {|value| .... } -> () (6206.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_value { |value| puts value }

# => gzip;q=1.0,deflate;q=0.6,identity;q=0.3
# => */*
# => Ruby
//}...

WEBrick::HTTPStatus::RC_REQUEST_URI_TOO_LARGE (6201.0)

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

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

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

Net::HTTPHeader#content_length -> Integer|nil (6106.0)

Content-Length: ヘッダフィールドの表している値を整数で返します。

...t-Length: ヘッダフィールドの表している値を整数で返します。

ヘッダが設定されていない場合には nil を返します。

@raise Net::HTTPHeaderSyntaxError フィールドの値が不正である場合に
発生します。

//emli...
...st[例][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#delete(key) -> [String] | nil (6106.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.content_length = 10
req.content_length # => 10
req.delete("Content-Length") # => ["10"]
req.content_length # => nil
//}...

Net::HTTPHeader#each_capitalized_name {|name| .... } -> () (6106.0)

保持しているヘッダ名を正規化 ('x-my-header' -> 'X-My-Header') して、ブロックに渡します。

...-my-header' -> '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-Age...

Net::HTTPHeader#range_length -> Integer|nil (6106.0)

Content-Range: ヘッダフィールドの表している長さを整数で返します。

...ない場合には nil を返します。

@raise Net::HTTPHeaderSyntaxError Content-Range: ヘッダフィールド
の値が不正である場合に
発生します。


//emlist[例][ruby]{
requi...
...re 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req['Content-Range'] = "bytes 1-500/1000"
req.range_length # => 500
//}...

WEBrick::HTTPStatus::RC_CONFLICT (3101.0)

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

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

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

WEBrick::HTTPStatus::RC_EXPECTATION_FAILED (3101.0)

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

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

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

絞り込み条件を変える

<< 1 2 3 ... > >>