452件ヒット
[1-100件を表示]
(0.044秒)
ライブラリ
- ビルトイン (94)
- base64 (12)
-
cgi
/ html (24) - json (12)
- kconv (24)
-
net
/ ftp (36) -
net
/ http (36) -
net
/ imap (48) - openssl (24)
-
rdoc
/ code _ object (24) -
rdoc
/ context (12) - rss (24)
- uri (24)
-
webrick
/ httpstatus (12)
クラス
-
Net
:: FTP (36) -
Net
:: HTTPResponse (36) -
Net
:: IMAP :: ResponseCode (24) -
Net
:: IMAP :: ResponseText (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: OCSP :: BasicResponse (12) -
RDoc
:: CodeObject (24) - Regexp (22)
- String (72)
モジュール
- Base64 (12)
-
CGI
:: HtmlExtension (24) - Kconv (12)
-
RSS
:: ContentModel (24) - URI (24)
-
WEBrick
:: HTTPStatus (12)
キーワード
-
CODE
_ CLASS _ TO _ OBJ (12) -
CODE
_ TO _ OBJ (12) - Context (12)
- ConverterNotFoundError (12)
- MissingUnicodeSupport (12)
-
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - ResponseCode (12)
- compile (11)
-
content
_ encoded (12) -
content
_ encoded= (12) - data (12)
- decode64 (12)
-
decode
_ www _ form _ component (12) - each (12)
- encode (36)
- encode! (24)
-
encode
_ www _ form _ component (12) - form (24)
- kconv (36)
-
last
_ response (12) -
last
_ response _ code (12) - lastresp (12)
- name (12)
- new (11)
-
rdoc
/ generator / json _ index (12) -
rdoc
/ markdown (12) -
reason
_ phrase (12) - section (12)
- section= (12)
- status (12)
-
test
/ unit (1)
検索結果
先頭5件
-
Net
:: IMAP :: ResponseText # code -> Net :: IMAP :: ResponseCode | nil (21301.0) -
レスポンスコードを返します。
...レスポンスコードを返します。
応答がレスポンスコードを含んでいない場合は nil を返します。
@see Net::IMAP::ResponseCode... -
Net
:: HTTPResponse # code -> String (21107.0) -
HTTP のリザルトコードです。例えば '302' などです。
...スオブジェクトがどのクラスのインスタンスかを
見ることでもレスポンスの種類を判別できます。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.code # => "200"
//}... -
RSS
:: ContentModel # content _ encoded (15200.0) -
@todo
@todo -
RSS
:: ContentModel # content _ encoded= (15200.0) -
@todo
@todo -
Net
:: FTP # last _ response _ code -> String (12201.0) -
サーバからの最後の応答のコードを文字列で返します。
...サーバからの最後の応答のコードを文字列で返します。
例えばログイン(Net::FTP#login)に成功した場合には
"230" を返します。
数字の意味は 959 参照してください。
@see Net::FTP#last_response... -
URI
. decode _ www _ form _ component(str , enc=Encoding :: UTF _ 8) -> String (12200.0) -
URL-encoded form data の文字列の各コンポーネント をデコードした文字列を返します。
...URL-encoded form data の文字列の各コンポーネント
をデコードした文字列を返します。
通常は URI.decode_www_form を使うほうがよいでしょう。
"+" という文字は空白文字にデコードします。
enc で指定したエンコーディングの文字......ncoded-form-data
にもとづいて実装されています。
//emlist[][ruby]{
require 'uri'
enc = URI.encode_www_form_component('Ruby リファレンスマニュアル')
# => "Ruby+%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB"
p URI.decode_......www_form_component(enc)
# => "Ruby リファレンスマニュアル"
//}
@param str デコード対象の文字列
@param enc エンコーディング
@raise ArgumentError str のフォーマットが不正である場合に発生します
@see URI.encode_www_form_component, URI.decode_www_form... -
URI
. encode _ www _ form _ component(str , enc=nil) -> String (12200.0) -
文字列を URL-encoded form data の1コンポーネント としてエンコードした文字列を返します。
...文字列を URL-encoded form data の1コンポーネント
としてエンコードした文字列を返します。
通常は URI.encode_www_form を使うほうがよいでしょう。
このメソッドでは *, -, ., 0-9, A-Z, _, a-z, は変換せず、
空白は + に変換し、その他......。
このメソッドは
https://www.w3.org/TR/2013/CR-html5-20130806/forms.html#url-encoded-form-data
にもとづいて実装されています。
//emlist[][ruby]{
require 'uri'
p URI.encode_www_form_component('Ruby リファレンスマニュアル')
# => "Ruby+%E3%83%AA%E3%83%95%E3%82%A1%E3%......%83%B3%E3%82%B9%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB"
//}
@param str エンコードする文字列
@param enc 指定された場合、パーセントエンコーディングする前に、strをこのエンコーディングに変換
@see URI.decode_www_form_component, URI.encode_www_form... -
Net
:: IMAP :: ResponseCode (12000.0) -
応答のレスポンスコードを表すクラスです。
応答のレスポンスコードを表すクラスです。
レスポンスコードについては 2060 の 7.1 を参照してください。 -
Kconv
. # kconv(str , out _ code , in _ code = Kconv :: AUTO) -> String (9462.0) -
文字列 str のエンコーディングを out_code に変換したものを 返します。in_code も指定されていたら str のエンコーディングが in_code だとして動作します。
...文字列 str のエンコーディングを out_code に変換したものを
返します。in_code も指定されていたら str のエンコーディングが
in_code だとして動作します。
このメソッドはMIME エンコードされた文字列を展開し、
いわゆる半角......カナを全角に変換します。
これらを変換したくない場合は、 NKF.#nkf を使ってください。
@param str 変換元の文字列
@param out_code 変換後のエンコーディング
@param in_code strのエンコーディング
@see String#kconv...