ライブラリ
-
webrick
/ cgi (11) -
webrick
/ httpauth (22) -
webrick
/ httpauth / authenticator (11) -
webrick
/ httpauth / basicauth (22) -
webrick
/ httpauth / digestauth (22) -
webrick
/ httpproxy (11) -
webrick
/ httpresponse (33) -
webrick
/ httpservlet / abstract (11) -
webrick
/ httpservlet / filehandler (66) -
webrick
/ httpstatus (1067)
クラス
モジュール
キーワード
- Accepted (11)
- AuthException (11)
- BadGateway (11)
- BadRequest (11)
- ClientError (11)
- Conflict (11)
- Continue (11)
- Created (11)
- EOFError (11)
- Error (11)
- ExpectationFailed (11)
- Forbidden (11)
- Found (11)
- GatewayTimeout (11)
- Gone (11)
- HTTPVersionNotSupported (11)
- Info (11)
- InternalServerError (11)
- LengthRequired (11)
- MethodNotAllowed (11)
- MovedPermanently (11)
- MultipleChoices (11)
- NoContent (11)
- NonAuthoritativeInformation (11)
- NotAcceptable (11)
- NotFound (11)
- NotImplemented (11)
- NotModified (11)
- OK (11)
- PartialContent (11)
- PaymentRequired (11)
- PreconditionFailed (11)
- ProxyAuthenticationRequired (11)
-
RC
_ ACCEPTED (11) -
RC
_ BAD _ GATEWAY (11) -
RC
_ BAD _ REQUEST (11) -
RC
_ CONFLICT (11) -
RC
_ CONTINUE (11) -
RC
_ CREATED (11) -
RC
_ EXPECTATION _ FAILED (11) -
RC
_ FORBIDDEN (11) -
RC
_ FOUND (11) -
RC
_ GATEWAY _ TIMEOUT (11) -
RC
_ GONE (11) -
RC
_ HTTP _ VERSION _ NOT _ SUPPORTED (11) -
RC
_ INTERNAL _ SERVER _ ERROR (11) -
RC
_ LENGTH _ REQUIRED (11) -
RC
_ METHOD _ NOT _ ALLOWED (11) -
RC
_ MOVED _ PERMANENTLY (11) -
RC
_ MULTIPLE _ CHOICES (11) -
RC
_ NON _ AUTHORITATIVE _ INFORMATION (11) -
RC
_ NOT _ ACCEPTABLE (11) -
RC
_ NOT _ FOUND (11) -
RC
_ NOT _ IMPLEMENTED (11) -
RC
_ NOT _ MODIFIED (11) -
RC
_ NO _ CONTENT (11) -
RC
_ OK (11) -
RC
_ PARTIAL _ CONTENT (11) -
RC
_ PAYMENT _ REQUIRED (11) -
RC
_ PRECONDITION _ FAILED (11) -
RC
_ PROXY _ AUTHENTICATION _ REQUIRED (11) -
RC
_ REQUEST _ ENTITY _ TOO _ LARGE (11) -
RC
_ REQUEST _ RANGE _ NOT _ SATISFIABLE (11) -
RC
_ REQUEST _ TIMEOUT (11) -
RC
_ REQUEST _ URI _ TOO _ LARGE (11) -
RC
_ RESET _ CONTENT (11) -
RC
_ SEE _ OTHER (11) -
RC
_ SERVICE _ UNAVAILABLE (11) -
RC
_ SWITCHING _ PROTOCOLS (11) -
RC
_ TEMPORARY _ REDIRECT (11) -
RC
_ UNAUTHORIZED (11) -
RC
_ UNSUPPORTED _ MEDIA _ TYPE (11) -
RC
_ USE _ PROXY (11) - Redirect (11)
- RequestEntityTooLarge (11)
- RequestRangeNotSatisfiable (11)
- RequestTimeout (11)
- RequestURITooLarge (11)
- ResetContent (11)
- SeeOther (11)
- ServerError (11)
- ServiceUnavailable (11)
- Status (11)
- Success (11)
- SwitchingProtocols (11)
- TemporaryRedirect (11)
- UnsupportedMediaType (11)
- UseProxy (11)
- [] (11)
- authenticate (22)
-
basic
_ auth (11) - challenge (22)
-
client
_ error? (11) -
do
_ GET (22) -
do
_ OPTIONS (11) -
do
_ POST (11) - error? (11)
- info? (11)
-
make
_ partial _ content (11) - new (11)
-
proxy
_ basic _ auth (11) -
reason
_ phrase (11) - redirect? (11)
-
server
_ error? (11) - service (33)
-
set
_ error (11) -
set
_ redirect (11) - status (11)
- success? (11)
-
webrick
/ httpstatus (11)
検索結果
先頭5件
-
WEBrick
:: HTTPStatus (21042.0) -
HTTP のステータスを表す例外クラスを提供するモジュールです。 ステータスコード 200 などの成功の場合も含まれます。
...* WEBrick::HTTPStatus::Status
* WEBrick::HTTPStatus::Info (1XX)
* WEBrick::HTTPStatus::Success (2XX)
* WEBrick::HTTPStatus::Redirect (3XX)
* WEBrick::HTTPStatus::Error
* WEBrick::HTTPStatus::ClientError (4XX)
* WEBrick::H... -
WEBrick
:: HTTPAuth :: BasicAuth # authenticate(request , response) -> bool (12106.0) -
クライアントから送られてきたユーザ名とパスワードを認証します。 認証に失敗した場合は challenge を呼びます。
...した場合は challenge を呼びます。
@param request WEBrick::HTTPRequest のインスタンスを指定します。
@param response WEBrick::HTTPResponse のインスタンスを指定します。
@raise WEBrick::HTTPStatus::Unauthorized 認証に失敗した場合に発生します。... -
WEBrick
:: HTTPStatus :: Conflict (12000.0) -
HTTP のステータスコード 409 Conflict を表すクラスです。
...HTTP のステータスコード 409 Conflict を表すクラスです。... -
WEBrick
:: HTTPStatus :: MultipleChoices (12000.0) -
HTTP のステータスコード 300 Multiple Choices を表すクラスです。
...HTTP のステータスコード 300 Multiple Choices を表すクラスです。... -
WEBrick
:: HTTPStatus :: ProxyAuthenticationRequired (12000.0) -
HTTP のステータスコード 407 Proxy Authentication Required を表すクラスです。
...HTTP のステータスコード 407 Proxy Authentication Required を表すクラスです。... -
WEBrick
:: HTTPStatus :: ServiceUnavailable (12000.0) -
HTTP のステータスコード 503 Service Unavailable を表すクラスです。
...HTTP のステータスコード 503 Service Unavailable を表すクラスです。... -
webrick
/ httpstatus (12000.0) -
HTTP のステータスを表す例外クラスを提供します。
HTTP のステータスを表す例外クラスを提供します。 -
WEBrick
:: HTTPAuth :: ProxyAuthenticator :: AuthException -> Class (9116.0) -
WEBrick::HTTPStatus::ProxyAuthenticationRequired です。
...WEBrick::HTTPStatus::ProxyAuthenticationRequired です。... -
WEBrick
:: CGI # service(req , res) -> () (9106.0) -
指定された WEBrick::HTTPRequest オブジェクト req の WEBrick::HTTPRequest#request_method に応じて、 自身の do_GET, do_HEAD, do_POST, do_OPTIONS... いずれかのメソッドを req と res を引数として呼びます。
...定された WEBrick::HTTPRequest オブジェクト req の WEBrick::HTTPRequest#request_method に応じて、
自身の do_GET, do_HEAD, do_POST, do_OPTIONS... いずれかのメソッドを req と res を引数として呼びます。
特に理由が無い限り WEBrick::CGI のサブクラス......らのリクエストを表す WEBrick::HTTPRequest オブジェクトです。
@param res クライアントへのレスポンスを表す WEBrick::HTTPResponse オブジェクトです。
@raise WEBrick::HTTPStatus::MethodNotAllowed 指定された
WEBrick::HTTPRequest オブジェクト... -
WEBrick
:: HTTPAuth . # basic _ auth(req , res , realm) {|user , pass| . . . } -> nil (9106.0) -
Basic 認証を行うためのメソッドです。
...Basic 認証を行うためのメソッドです。
与えられたブロックは user, pass をブロックパラメータとして渡されて評価されます。
ブロックの評価結果が真である場合、認証が成功したことになります。
ブロックの評価結果が偽......Brick::HTTPRequest オブジェクトを指定します。
@param res WEBrick::HTTPResponse オブジェクトを指定します。
@param realm 認証のレルムを文字列で指定します。
@raise WEBrick::HTTPStatus::Unauthorized 認証に失敗した場合に発生します。
require......'webrick'
srv.mount_proc('/basic_auth') {|req, res|
HTTPAuth.basic_auth(req, res, "WEBrick's realm") {|user, pass|
user == 'webrick' && pass == 'supersecretpassword'
}
res.body = "hoge"
}...