1204件ヒット
[1-100件を表示]
(0.158秒)
ライブラリ
- ビルトイン (88)
-
cgi
/ core (55) -
net
/ http (319) -
net
/ imap (198) - open-uri (104)
-
rdoc
/ markup (11) -
rexml
/ document (55) -
rexml
/ sax2listener (44) -
rexml
/ streamlistener (66) -
rubygems
/ package / tar _ output (11) -
webrick
/ httprequest (33) -
webrick
/ httpresponse (77) -
webrick
/ httpservlet / filehandler (11) -
webrick
/ httputils (22)
クラス
- CGI (33)
- Encoding (44)
-
Encoding
:: Converter (33) -
Gem
:: Package :: TarOutput (11) - IO (11)
-
Net
:: HTTP (165) -
Net
:: HTTPGenericRequest (22) -
Net
:: IMAP :: BodyTypeBasic (44) -
Net
:: IMAP :: BodyTypeMessage (44) -
Net
:: IMAP :: BodyTypeMultipart (11) -
Net
:: IMAP :: BodyTypeText (44) -
Net
:: IMAP :: ContentDisposition (22) -
RDoc
:: Markup (11) -
REXML
:: Instruction (44) -
WEBrick
:: HTTPRequest (33) -
WEBrick
:: HTTPResponse (77) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (11) -
WEBrick
:: HTTPUtils :: FormData (11)
モジュール
-
CGI
:: QueryExtension (22) - Kernel (16)
-
Net
:: HTTPHeader (132) - OpenURI (22)
-
OpenURI
:: Meta (55) -
OpenURI
:: OpenRead (11) -
REXML
:: SAX2Listener (44) -
REXML
:: StreamListener (66)
キーワード
- == (11)
- BodyTypeMessage (11)
- BodyTypeText (11)
- ContentDisposition (11)
- FormData (11)
- Instruction (11)
-
MAX
_ MULTIPART _ LENGTH (11) -
SJIS
_ DOCOMO (11) -
SJIS
_ DoCoMo (11) -
UTF8
_ DOCOMO (11) -
UTF8
_ DoCoMo (11) - [] (22)
- []= (11)
-
add
_ gem _ contents (11) - attlistdecl (22)
- body= (11)
-
body
_ stream (11) -
body
_ stream= (11) - cdata (22)
- cgi (11)
- charset (22)
-
content
_ encoding (11) -
content
_ id (33) -
content
_ length (44) -
content
_ length= (11) -
content
_ range (11) -
content
_ type (55) -
content
_ type= (11) - delete (11)
- description (33)
- disposition (44)
-
dsp
_ type (11) - elementdecl (22)
- encoding (33)
- entity (11)
- entitydecl (22)
- fetch (33)
- get2 (22)
-
get
_ fields (11) - head (11)
- head2 (22)
- header (11)
-
main
_ type (11) -
net
/ imap (11) - new (44)
- notationdecl (11)
- open (16)
- open-uri (11)
-
open
_ uri (22) - out (11)
- param (11)
- post (22)
- post2 (22)
-
prepare
_ range (11) - query (11)
-
range
_ length (11) - read (11)
- readpartial (11)
-
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
sub
_ type (11) - target (11)
-
to
_ s (11) -
webrick
/ cgi (11) - 正規表現 (11)
検索結果
先頭5件
-
REXML
:: Instruction # content -> String | nil (21349.0) -
XML 処理命令の内容を返します。
...。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?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
//}... -
RDoc
:: Markup # content -> String (18301.0) -
変換する文字列を返します。
...ブラリのデバッグ用途に使用します。
SM::SimpleMarkup#convert の後に実行します。
変換のために加工したオブジェクトを改行で連結したものを返すため、変換前
の文字列と結果が異なる事があります。
@see SM::SimpleMarkup#convert... -
OpenURI
:: Meta # content _ encoding -> [String] (12483.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"]
}
//}... -
Net
:: IMAP :: BodyTypeBasic # content _ id -> String | nil (12333.0) -
Content-ID の値を文字列で返します。
...Content-ID の値を文字列で返します。
@see 2045... -
Net
:: IMAP :: BodyTypeMessage # content _ id -> String | nil (12333.0) -
Content-ID の値を文字列で返します。
...Content-ID の値を文字列で返します。
@see 2045... -
Net
:: IMAP :: BodyTypeText # content _ id -> String | nil (12333.0) -
Content-ID の値を文字列で返します。
...Content-ID の値を文字列で返します。
@see 2045... -
open-uri (12108.0)
-
http/ftp に簡単にアクセスするためのクラスです。
...普通のファイルのように開けます。
require 'open-uri'
open("http://www.ruby-lang.org/") {|f|
f.each_line {|line| p line}
}
開いたファイルオブジェクトは StringIO もしくは Tempfile で
すが OpenURI::Meta モジュールで拡張されていて、メタ情......ire 'open-uri'
open("http://www.ruby-lang.org/en") {|f|
f.each_line {|line| p line}
p f.base_uri # <URI::HTTP:0x40e6ef2 URL:http://www.ruby-lang.org/en/>
p f.content_type # "text/html"
p f.charset # "iso-8859-1"
p f.content_encoding # []
p f.last_modifi......、追加のヘッダフィールドを指定できます。
require 'open-uri'
open("http://www.ruby-lang.org/en/",
"User-Agent" => "Ruby/#{RUBY_VERSION}",
"From" => "foo@bar.invalid",
"Referer" => "http://www.ruby-lang.org/") {|f|
...
}
http_proxy や ftp_proxy などの環......普通のファイルのように開けます。
require 'open-uri'
URI.open("http://www.ruby-lang.org/") {|f|
f.each_line {|line| p line}
}
開いたファイルオブジェクトは StringIO もしくは Tempfile で
すが OpenURI::Meta モジュールで拡張されていて、メタ......。
require 'open-uri'
URI.open("http://www.ruby-lang.org/en") {|f|
f.each_line {|line| p line}
p f.base_uri # <URI::HTTP:0x40e6ef2 URL:http://www.ruby-lang.org/en/>
p f.content_type # "text/html"
p f.charset # "iso-8859-1"
p f.content_encoding # []......p f.last_modified # Thu Dec 05 02:45:02 UTC 2002
}
ハッシュ引数で、追加のヘッダフィールドを指定できます。
require 'open-uri'
URI.open("http://www.ruby-lang.org/en/",
"User-Agent" => "Ruby/#{RUBY_VERSION}",
"From" => "foo@bar.invalid",
"Referer" => "h... -
Net
:: IMAP :: ContentDisposition (12032.0) -
1806, 2183 で定義されている MIME の Content-Disposition フィールドを表すクラスです。
...1806, 2183 で定義されている MIME の
Content-Disposition フィールドを表すクラスです。... -
OpenURI
:: Meta # content _ type -> String (9431.0) -
対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。 Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
...ースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
//emlist[例][ruby]{
require 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.content_type #=> "......ースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
//emlist[例][ruby]{
require 'open-uri'
URI.open('http://www.ruby-lang.org/') {|f|
p f.content_type #... -
WEBrick
:: HTTPResponse # content _ length -> Integer | nil (9430.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
: body が String オブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダには
body のサイズが使われます。nil でないとき body の実......ん。
: body が IO オブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダはレスポンスに含まれず、IO から全てを読み込ん
でそれをエンティティボディとします。nil でないとき IO から content_length バイトだ......616 4.4 で定められた Content-Length ヘッダを送ってはいけない場合に当てはまる時には
content_length の値は無視され Content-Length ヘッダはレスポンスに含まれません。
@param len ヘッダの値を整数で指定します。nil を指定すること...