別のキーワード
ライブラリ
- ビルトイン (96)
-
cgi
/ core (48) - csv (36)
-
net
/ http (372) -
net
/ imap (180) - open-uri (112)
-
rdoc
/ markup (12) -
rdoc
/ markup / formatter (12) -
rexml
/ document (48) -
rexml
/ sax2listener (48) -
rexml
/ streamlistener (72) -
rubygems
/ package / tar _ output (12) -
webrick
/ httprequest (36) -
webrick
/ httpresponse (36) -
webrick
/ httpservlet / filehandler (12) -
webrick
/ httputils (12)
クラス
- CGI (24)
- CSV (36)
- Encoding (48)
-
Encoding
:: Converter (36) -
Gem
:: Package :: TarOutput (12) - IO (12)
-
Net
:: HTTP (180) -
Net
:: HTTPGenericRequest (12) -
Net
:: IMAP :: BodyTypeBasic (48) -
Net
:: IMAP :: BodyTypeMessage (48) -
Net
:: IMAP :: BodyTypeMultipart (12) -
Net
:: IMAP :: BodyTypeText (48) -
Net
:: IMAP :: ContentDisposition (24) -
RDoc
:: Markup (12) -
RDoc
:: Markup :: Formatter (12) -
REXML
:: Instruction (48) -
WEBrick
:: HTTPRequest (36) -
WEBrick
:: HTTPResponse (36) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (12) -
WEBrick
:: HTTPUtils :: FormData (12)
モジュール
-
CGI
:: QueryExtension (24) - Kernel (16)
-
Net
:: HTTPHeader (180) - OpenURI (24)
-
OpenURI
:: Meta (60) -
OpenURI
:: OpenRead (12) -
REXML
:: SAX2Listener (48) -
REXML
:: StreamListener (72)
キーワード
- == (12)
-
MAX
_ MULTIPART _ LENGTH (12) -
SJIS
_ DOCOMO (12) -
SJIS
_ DoCoMo (12) -
UTF8
_ DOCOMO (12) -
UTF8
_ DoCoMo (12) - [] (24)
-
add
_ gem _ contents (12) - attlistdecl (24)
-
body
_ stream (12) - cdata (24)
- cgi (12)
- charset (24)
-
content
_ encoding (12) -
content
_ id (36) -
content
_ length (48) -
content
_ range (12) -
content
_ type (60) - convert (12)
- delete (12)
- description (36)
- disposition (48)
-
dsp
_ type (12) - elementdecl (24)
- encoding (36)
- entity (12)
- entitydecl (24)
- fetch (36)
- filter (36)
- get2 (24)
-
get
_ fields (12) - head (12)
- head2 (24)
- header (12)
- key? (12)
-
main
_ type (12) - new (48)
- notationdecl (12)
- open (16)
-
open
_ uri (24) - param (12)
- post (24)
- post2 (24)
-
prepare
_ range (12) - query (12)
-
range
_ length (12) - read (12)
- readpartial (12)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
set
_ form _ data (12) -
sub
_ type (12) - target (12)
-
to
_ s (12) -
type
_ params (12) - 正規表現 (12)
検索結果
先頭5件
-
REXML
:: Instruction # content -> String | nil (18213.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
//}... -
RDoc
:: Markup # content -> String (18201.0) -
変換する文字列を返します。
変換する文字列を返します。
rdoc ライブラリのデバッグ用途に使用します。
SM::SimpleMarkup#convert の後に実行します。
変換のために加工したオブジェクトを改行で連結したものを返すため、変換前
の文字列と結果が異なる事があります。
@see SM::SimpleMarkup#convert -
WEBrick
:: HTTPResponse # content _ length -> Integer | nil (6278.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
: body が String オブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダには
body のサイズが使われます。nil でないとき body の実......IO オブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダはレスポンスに含まれず、IO から全てを読み込ん
でそれをエンティティボディとします。nil でないとき IO から content_length バイトだけ読み込み......は
content_length の値は無視され Content-Length ヘッダはレスポンスに含まれません。
@param len ヘッダの値を整数で指定します。nil を指定することは出来ません。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1"... -
OpenURI
:: Meta # content _ type -> String (6255.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 #=> "tex......の 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 #=> "te... -
Net
:: HTTPHeader # content _ type -> String|nil (6241.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"
//}... -
OpenURI
:: Meta # content _ encoding -> [String] (6239.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
:: HTTPHeader # content _ length -> Integer|nil (6235.0) -
Content-Length: ヘッダフィールドの表している値を整数で返します。
...Content-Length: ヘッダフィールドの表している値を整数で返します。
ヘッダが設定されていない場合には nil を返します。
@raise Net::HTTPHeaderSyntaxError フィールドの値が不正である場合に
発生します。......//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length # => nil
req.content_length = 10
req.content_length # => 10
//}... -
Net
:: HTTPHeader # content _ range -> Range|nil (6235.0) -
Content-Range: ヘッダフィールドの値を Range で返します。 Range の表わす長さは Net::HTTPHeader#range_length で得られます。
...
Content-Range: ヘッダフィールドの値を Range で返します。
Range の表わす長さは Net::HTTPHeader#range_length で得られます。
ヘッダが設定されていない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.exa......mple.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_range # => nil
req['Content-Range'] = "bytes 0-499/1234"
req.content_range # => 0..499
//}... -
WEBrick
:: HTTPRequest # content _ length -> Integer (6233.0) -
リクエストの Content-Length ヘッダの値を整数で返します。リクエストに Content-Length ヘッダ が含まれていない場合は 0 を返します。
...リクエストの Content-Length ヘッダの値を整数で返します。リクエストに Content-Length ヘッダ
が含まれていない場合は 0 を返します。...