341件ヒット
[1-100件を表示]
(0.062秒)
種類
- インスタンスメソッド (209)
- ライブラリ (55)
- 特異メソッド (33)
- クラス (22)
- 文書 (22)
ライブラリ
- ビルトイン (33)
-
cgi
/ core (22) -
net
/ http (33) -
net
/ imap (55) - open-uri (44)
-
rexml
/ document (33) -
rexml
/ streamlistener (11) -
webrick
/ httprequest (11) -
webrick
/ httpresponse (11) -
webrick
/ httputils (11)
クラス
- CGI (22)
-
Encoding
:: Converter (33) -
Net
:: IMAP :: BodyTypeText (44) -
REXML
:: Instruction (22) -
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPUtils :: FormData (11)
モジュール
-
Net
:: HTTPHeader (33) -
OpenURI
:: Meta (44) -
REXML
:: StreamListener (11)
キーワード
- BodyTypeText (11)
- Instruction (11)
- [] (11)
- cgi (11)
- charset (22)
-
content
_ id (11) -
content
_ type (22) -
content
_ type= (11) - description (11)
- disposition (11)
- encoding (11)
- entitydecl (11)
- header (11)
-
main
_ type (11) -
net
/ imap (11) - new (33)
- open-uri (11)
- out (11)
- query (11)
- rss (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) -
sub
_ type (11) - target (11)
-
webrick
/ cgi (11)
検索結果
先頭5件
-
REXML
:: Instruction # content -> String | nil (18255.0) -
XML 処理命令の内容を返します。
...ersion="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
//}... -
Net
:: IMAP :: BodyTypeText # content _ id -> String | nil (9233.0) -
Content-ID の値を文字列で返します。
...Content-ID の値を文字列で返します。
@see 2045... -
OpenURI
:: Meta # content _ type -> String (6337.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 #=> "text/h...... 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 #=> "text/... -
Net
:: HTTPHeader # content _ type -> String|nil (6291.0) -
"text/html" のような Content-Type を表す 文字列を返します。
..."text/html" のような Content-Type を表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post.......new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data'
req.content_type # => "multipart/form-data"
//}... -
WEBrick
:: HTTPResponse # content _ type=(val) (6157.0) -
Content-Type ヘッダの値をセットします。
...
Content-Type ヘッダの値をセットします。
@param val Content-Type ヘッダの値を文字列で指定します。
res.content_type = "text/html"
@see WEBrick::HTTPUtils.#mime_type... -
open-uri (6114.0)
-
http/ftp に簡単にアクセスするためのクラスです。 Kernel.#open を再定義します。
...#open を再定義します。
=== 使用例
http/ftp の URL を、普通のファイルのように開けます。
require 'open-uri'
open("http://www.ruby-lang.org/") {|f|
f.each_line {|line| p line}
}
開いたファイルオブジェクトは StringIO もしくは Tempfile で
す......。
require '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.......加のヘッダフィールドを指定できます。
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 などの環境変......ためのクラスです。
=== 使用例
http/ftp の URL を、普通のファイルのように開けます。
require 'open-uri'
URI.open("http://www.ruby-lang.org/") {|f|
f.each_line {|line| p line}
}
開いたファイルオブジェクトは StringIO もしくは Tempfile で......。
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 # []......のヘッダフィールドを指定できます。
require 'open-uri'
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 などの環境... -
Net
:: IMAP :: BodyTypeText (6048.0) -
Content-Type が text であるメッセージを表すクラスです。
...Content-Type が text であるメッセージを表すクラスです。
平文のメールを表します。
詳しくは MIME のRFC(2045)を参照してください。... -
ruby 1
. 6 feature (5352.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...グ修正がメイン
になります。
((<stable-snapshot|URL:ftp://ftp.netlab.co.jp/pub/lang/ruby/stable-snapshot.tar.gz>)) は、日々更新される安定版の最新ソースです。
== 1.6.8 (2002-12-24) -> stable-snapshot
: 2003-01-22: errno
EAGAIN と EWOULDBLOCK が同じ値の......1-09-19) [i586-linux]
sub:sub
main:main
sub:sub
main:main
: net/telnet
Net::Telnet が特定のホストへ接続後、動かない事がありました。
((<ruby-list:31303>))
: CGI#header
以下のようなスクリプトでTEXT_PLAINが"text/......ire 'cgi'
TEXT_PLAIN = "text/plain"
cgi = CGI.new
print cgi.header("type" => TEXT_PLAIN,
"charset" => "iso-8859-1")
printf("TEXT_PLAIN: %s\n", TEXT_PLAIN)
=> ruby 1.6.4 (2001-06-04) [i586-linux]
Content-Type: text/plain;... -
Net
:: IMAP :: BodyTypeText # disposition -> Net :: IMAP :: ContentDisposition | nil (3232.0) -
Content-Dispotition の値を返します。
...Content-Dispotition の値を返します。
Net::IMAP::ContentDisposition オブジェクトを返します。
@see 1806, 2183... -
Net
:: IMAP :: BodyTypeText # encoding -> String (3148.0) -
Content-Transfer-Encoding の値を文字列で返します。
...Content-Transfer-Encoding の値を文字列で返します。
@see 2045...