84件ヒット
[1-84件を表示]
(0.206秒)
ライブラリ
-
net
/ imap (36) - open-uri (12)
-
rexml
/ document (24) -
webrick
/ httprequest (12)
クラス
-
Net
:: IMAP :: BodyTypeBasic (12) -
Net
:: IMAP :: BodyTypeMessage (12) -
Net
:: IMAP :: BodyTypeText (12) -
REXML
:: Instruction (24) -
WEBrick
:: HTTPRequest (12)
モジュール
-
OpenURI
:: Meta (12)
キーワード
-
content
_ encoding (12) - query (12)
- target (12)
検索結果
先頭5件
-
Net
:: IMAP :: BodyTypeBasic # encoding -> String (18235.0) -
Content-Transfer-Encoding の値を文字列で返します。
...Content-Transfer-Encoding の値を文字列で返します。
@see 2045... -
Net
:: IMAP :: BodyTypeMessage # encoding -> String (18235.0) -
Content-Transfer-Encoding の値を文字列で返します。
...Content-Transfer-Encoding の値を文字列で返します。
@see 2045... -
Net
:: IMAP :: BodyTypeText # encoding -> String (18235.0) -
Content-Transfer-Encoding の値を文字列で返します。
...Content-Transfer-Encoding の値を文字列で返します。
@see 2045... -
REXML
:: Instruction # content -> String | nil (18221.0) -
XML 処理命令の内容を返します。
...version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}... -
OpenURI
:: Meta # content _ encoding -> [String] (12380.0) -
対象となるリソースの Content-Encoding を文字列の配列として返します。 Content-Encoding ヘッダがない場合は、空の配列を返します。
...となるリソースの Content-Encoding を文字列の配列として返します。
Content-Encoding ヘッダがない場合は、空の配列を返します。
例:
//emlist[例][ruby]{
require 'open-uri'
open('http://example.com/f.tar.gz') {|f|
p f.content_encoding #=> ["x-gzip"]
}
//}......なるリソースの Content-Encoding を文字列の配列として返します。
Content-Encoding ヘッダがない場合は、空の配列を返します。
例:
//emlist[例][ruby]{
require 'open-uri'
URI.open('http://example.com/f.tar.gz') {|f|
p f.content_encoding #=> ["x-gzip"]
}
//}... -
REXML
:: Instruction # target -> String (114.0) -
XML 処理命令のターゲットを返します。
...quire 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
//}... -
WEBrick
:: HTTPRequest # query -> Hash (25.0) -
リクエストのクエリーあるいはクライアントがフォームへ入力した値を表すハッシュを返します。
...multipart/form-data なフォームデータの場合には
ユーザが content-transfer-encoding ヘッダを見て適切に処理する必要があります。
ハッシュの値は正確には文字列ではなく String クラスのサブクラスである WEBrick::HTTPUtils::FormData
クラ......巨大な文字列が
生成されてしまいます。
例:
h = req.query
p h['q'] #=> "ruby rails session"
p h['upfile']['content-type'] #=> "plain/text"
p h['upfile'].filename #=> "my_file.txt"
p h['upfile'] #=> "hoge hoge hoge"...