別のキーワード
ライブラリ
- ビルトイン (11)
-
cgi
/ core (33) -
net
/ http (341) -
net
/ imap (165) - open-uri (66)
-
rdoc
/ markup (11) -
rdoc
/ markup / formatter (11) -
rexml
/ document (33) -
rexml
/ sax2listener (44) -
rexml
/ streamlistener (66) -
rubygems
/ package / tar _ output (11) -
webrick
/ httprequest (33) -
webrick
/ httpresponse (33) -
webrick
/ httpservlet / filehandler (11) -
webrick
/ httputils (11)
クラス
- CGI (11)
-
Gem
:: Package :: TarOutput (11) - IO (11)
-
Net
:: HTTP (165) -
Net
:: HTTPGenericRequest (11) -
Net
:: IMAP :: BodyTypeBasic (44) -
Net
:: IMAP :: BodyTypeMessage (44) -
Net
:: IMAP :: BodyTypeMultipart (11) -
Net
:: IMAP :: BodyTypeText (44) -
Net
:: IMAP :: ContentDisposition (22) -
RDoc
:: Markup (11) -
RDoc
:: Markup :: Formatter (11) -
REXML
:: Instruction (33) -
WEBrick
:: HTTPRequest (33) -
WEBrick
:: HTTPResponse (33) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (11) -
WEBrick
:: HTTPUtils :: FormData (11)
モジュール
-
CGI
:: QueryExtension (22) -
Net
:: HTTPHeader (165) -
OpenURI
:: Meta (55) -
OpenURI
:: OpenRead (11) -
REXML
:: SAX2Listener (44) -
REXML
:: StreamListener (66)
キーワード
- == (11)
- [] (22)
-
add
_ gem _ contents (11) - attlistdecl (22)
-
body
_ stream (11) - cdata (22)
- charset (22)
-
content
_ encoding (11) -
content
_ id (33) -
content
_ length (44) -
content
_ range (11) -
content
_ type (55) - convert (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)
- key? (11)
-
main
_ type (11) - notationdecl (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) -
set
_ form _ data (11) -
sub
_ type (11) - target (11)
-
to
_ s (11) -
type
_ params (11)
検索結果
先頭5件
-
REXML
:: Instruction # content -> String | nil (18214.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 (18202.0) -
変換する文字列を返します。
変換する文字列を返します。
rdoc ライブラリのデバッグ用途に使用します。
SM::SimpleMarkup#convert の後に実行します。
変換のために加工したオブジェクトを改行で連結したものを返すため、変換前
の文字列と結果が異なる事があります。
@see SM::SimpleMarkup#convert -
WEBrick
:: HTTPResponse # content _ length -> Integer | nil (6279.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 バイトだけ読み込み......を
エンティティボディとします。
また 2616 4.4 で定められた Content-Length ヘッダを送ってはいけない場合に当てはまる時には
content_length の値は無視され Content-Length ヘッダはレスポンスに含まれません。
@param len ヘッダの... -
OpenURI
:: Meta # content _ type -> String (6256.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 (6242.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] (6240.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 (6236.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 (6236.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 (6234.0) -
リクエストの Content-Length ヘッダの値を整数で返します。リクエストに Content-Length ヘッダ が含まれていない場合は 0 を返します。
...リクエストの Content-Length ヘッダの値を整数で返します。リクエストに Content-Length ヘッダ
が含まれていない場合は 0 を返します。... -
CGI
:: QueryExtension # content _ length -> Integer (6218.0) -
ENV['CONTENT_LENGTH'] を返します。
...ENV['CONTENT_LENGTH'] を返します。...