324件ヒット
[301-324件を表示]
(0.094秒)
種類
- インスタンスメソッド (216)
- 特異メソッド (60)
- クラス (36)
- ライブラリ (12)
ライブラリ
-
net
/ http (12) -
webrick
/ cgi (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (144) -
webrick
/ httpserver (12) -
webrick
/ httpstatus (12) -
webrick
/ httpversion (108)
クラス
-
WEBrick
:: CGI (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (144) -
WEBrick
:: HTTPServer (12) -
WEBrick
:: HTTPVersion (96)
キーワード
- <=> (12)
- HTTPVersionNotSupported (24)
- body= (12)
- chunked= (12)
-
content
_ length (12) -
content
_ length= (12) - convert (12)
-
http
_ version (24) - major (12)
- major= (12)
- minor (12)
- minor= (12)
- new (48)
-
reason
_ phrase= (12) -
request
_ http _ version (12) -
request
_ http _ version= (12) - status= (12)
-
status
_ line (12) -
to
_ s (24) -
webrick
/ httpversion (12)
検索結果
-
WEBrick
:: HTTPResponse # content _ length=(len) (3006.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
: body が String オブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダには
body のサイズが使われます。nil でないとき body の実......せん。
@param len ヘッダの値を整数で指定します。nil を指定することは出来ません。
require 'webrick'
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 # status=(status) (3006.0) -
レスポンスのステータスコードを整数で指定します。 reason_phrase も適切なものに設定されます。
...数で指定します。
reason_phrase も適切なものに設定されます。
@param status ステータスコードを整数で指定します。
require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.status = 404
p res.reason_phrase #=> "Not Found"...