242件ヒット
[201-242件を表示]
(0.087秒)
ライブラリ
- ビルトイン (44)
-
rake
/ rdoctask (77) -
rexml
/ document (77) -
webrick
/ httpresponse (44)
クラス
-
REXML
:: DocType (77) -
Rake
:: RDocTask (77) - String (44)
-
WEBrick
:: HTTPResponse (44)
キーワード
- [] (11)
-
attribute
_ of (11) -
content
_ length (11) -
content
_ length= (11) - entities (11)
- entity (11)
-
external
_ id (11) - hex (11)
- main (11)
- name (22)
-
option
_ string (11) - public (11)
- quote (11)
-
rdoc
_ dir (11) - system (11)
- template (11)
- title (11)
-
to
_ f (11) -
to
_ i (11) -
to
_ s (11)
検索結果
先頭4件
-
WEBrick
:: HTTPResponse # [](field) -> String (108.0) -
レスポンスのヘッダの該当する内容を文字列で返します。
...レスポンスのヘッダの該当する内容を文字列で返します。
@param field ヘッダ名を文字列で指定します。大文字と小文字を区別しません。
p res['date'] #=> "Sat, 27 Oct 2007 08:53:03 GMT"... -
WEBrick
:: HTTPResponse # to _ s -> String (108.0) -
実際にクライアントに送られるデータを文字列として返します。
...列として返します。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.body = 'hoge'
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 08:58:49 GMT
Server:
Content-Length: 4
hoge... -
WEBrick
:: HTTPResponse # content _ length -> Integer | nil (13.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
: body が String オブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダには
body のサイズが使われます。nil でないとき body の実......'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
f = File.new('testfile')
res.body = f
res.content_length = 2
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 12:04:32 GMT
Server:
Content-Length: 2
ho... -
WEBrick
:: HTTPResponse # content _ length=(len) (13.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
: body が String オブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダには
body のサイズが使われます。nil でないとき body の実......'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
f = File.new('testfile')
res.body = f
res.content_length = 2
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 12:04:32 GMT
Server:
Content-Length: 2
ho...