るりまサーチ

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

別のキーワード

  1. webrick/httpstatus notfound
  2. webrick/httpstatus webrick::httpstatus::notfound
  3. notfound
  4. notfound webrick/httpstatus

検索結果

<< 1 2 > >>

WEBrick::HTTPStatus::NotFound (18000.0)

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

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

DRb::DRbServerNotFound (6000.0)

カレントサーバが見付からない場合に発生する例外のクラス

カレントサーバが見付からない場合に発生する例外のクラス

@see DRb.#current_server

Encoding::ConverterNotFoundError (6000.0)

指定した名前のエンコーディング変換をする変換器が 存在しない場合に発生する例外。

...指定した名前のエンコーディング変換をする変換器が
存在しない場合に発生する例外。

//emlist[例][ruby]{
"あ".encode("Foo")
#=> Encoding::ConverterNotFoundError: code converter not found (UTF-8 to Foo)
//}...

Gem::GemNotFoundException (6000.0)

Gem が見つからなかった場合の例外です。

Gem が見つからなかった場合の例外です。

Net::HTTPNotFound (6000.0)

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

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

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

絞り込み条件を変える

RSS::XMLParserNotFound (6000.0)

Shell::Error::CommandNotFound (6000.0)

コマンドが見つからないときに発生する例外です。

コマンドが見つからないときに発生する例外です。

Data.define(*args) -> Class (30.0)

Data クラスに新しいサブクラスを作って、それを返します。

...][ruby]{
class HTTPFetcher
Response = Data.define(:body)
NotFound
= Data.define

def get(url)
# ダミーの実装
if url == "http://example.com/"
Response.new(body: "Current time is #{Time.now}")
else
NotFound
.new
end
end
end

def fetch(url)
fetcher = HTTPFetch...
...t(url)
in HTTPFetcher::Response(body)
body
in HTTPFetcher::NotFound
:NotFound
end
end

p fetch("http://example.com/") # => "Current time is 2023-01-10 10:00:53 +0900"
p fetch("http://example.com/404") # => :NotFound
//}

@param args 値オブジェクトのクラスを定義する...

Data.define(*args) {|subclass| block } -> Class (30.0)

Data クラスに新しいサブクラスを作って、それを返します。

...][ruby]{
class HTTPFetcher
Response = Data.define(:body)
NotFound
= Data.define

def get(url)
# ダミーの実装
if url == "http://example.com/"
Response.new(body: "Current time is #{Time.now}")
else
NotFound
.new
end
end
end

def fetch(url)
fetcher = HTTPFetch...
...t(url)
in HTTPFetcher::Response(body)
body
in HTTPFetcher::NotFound
:NotFound
end
end

p fetch("http://example.com/") # => "Current time is 2023-01-10 10:00:53 +0900"
p fetch("http://example.com/404") # => :NotFound
//}

@param args 値オブジェクトのクラスを定義する...

WEBrick::HTTPServlet::FileHandler#do_GET(request, response) -> () (6.0)

GET リクエストを処理します。

...エストを表す WEBrick::HTTPRequest オブジェクトです。

@param response クライアントへのレスポンスを表す WEBrick::HTTPResponse オブジェクトです。

@raise WEBrick::HTTPStatus::NotFound 対象となるパスが見つからなかった場合に発生します。...

絞り込み条件を変える

WEBrick::HTTPServlet::FileHandler#do_OPTIONS(request, response) -> () (6.0)

OPTIONS リクエストを処理します。

...エストを表す WEBrick::HTTPRequest オブジェクトです。

@param response クライアントへのレスポンスを表す WEBrick::HTTPResponse オブジェクトです。

@raise WEBrick::HTTPStatus::NotFound 対象となるパスが見つからなかった場合に発生します。...
<< 1 2 > >>