るりまサーチ

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

別のキーワード

  1. net/http get
  2. http start
  3. http get
  4. net/http start
  5. net/http post

検索結果

<< 1 2 3 ... > >>

WEBrick::HTTPStatus::Found (21032.0)

HTTP のステータスコード 302 Found を表すクラスです。

...HTTP のステータスコード 302 Found を表すクラスです。...

Net::HTTPFound (12032.0)

HTTP レスポンス 302 (Found) を表現するクラスです。

...HTTP レスポンス 302 (Found) を表現するクラスです。

詳しくは 7231 Section 6.4.3 を見てください。...

Net::HTTPNotFound (12032.0)

HTTP レスポンス 404 (Not Found) を表現するクラスです。

...HTTP レスポンス 404 (Not Found) を表現するクラスです。

詳しくは 7231 Section 6.5.4 を見てください。...

WEBrick::HTTPStatus::NotFound (9032.0)

HTTP のステータスコード 404 Not Found を表すクラスです。

...HTTP のステータスコード 404 Not Found を表すクラスです。...

WEBrick::HTTPStatus::RC_FOUND (6119.0)

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

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

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

絞り込み条件を変える

WEBrick::HTTPStatus::RC_HTTP_VERSION_NOT_SUPPORTED (6119.0)

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

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

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

WEBrick::HTTPStatus::RC_NOT_FOUND (6119.0)

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

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

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

Net::HTTPExceptions#response -> Net::HTTPResponse (3124.0)

例外の原因となったレスポンスオブジェクトを返します。

...レスポンスオブジェクトを返します。

//emlist[例][ruby]{
require 'net/http'

uri = "http://www.example.com/invalid.html"
response = Net::HTTP.get_response(URI.parse(uri))
begin
response.value
rescue => e
e.response # => #<Net::HTTPNotFound 404 Not Found readbody=true>
end
//}...

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

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

...y が存在する][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("content-length")...
...rescue => e
e # => #<KeyError: key not found: "content-length">
end
//}

//emlist[例 key , default を指定][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", "default") # => "default"
//}

//eml...
...ist[例 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") { |e| 99 } # => 99
//}

@see Net::HTTPHeader#[]...

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

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

...y が存在する][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("content-length")...
...rescue => e
e # => #<KeyError: key not found: "content-length">
end
//}

//emlist[例 key , default を指定][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", "default") # => "default"
//}

//eml...
...ist[例 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") { |e| 99 } # => 99
//}

@see Net::HTTPHeader#[]...

絞り込み条件を変える

<< 1 2 3 ... > >>