324件ヒット
[201-300件を表示]
(0.055秒)
種類
- インスタンスメソッド (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)
検索結果
先頭5件
-
WEBrick
:: HTTPVersion # minor=(n) (6000.0) -
HTTP バージョンのマイナーを整数で表すアクセサです。
...HTTP バージョンのマイナーを整数で表すアクセサです。
@param n HTTP バージョンのマイナーを整数で指定します。... -
WEBrick
:: HTTPResponse . new(config) -> WEBrick :: HTTPResponse (3112.0) -
HTTPResponse オブジェクトを生成して返します。
...HTTPResponse オブジェクトを生成して返します。
@param config 設定を保存したハッシュを指定します。:HTTPVersion は必須です。
require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )... -
WEBrick
:: HTTPServer . new(config = {} , default = WEBrick :: Config :: HTTP) -> WEBrick :: HTTPServer (3112.0) -
HTTPServer オブジェクトを生成して返します。
...HTTPServer オブジェクトを生成して返します。
@param config 設定を保存したハッシュを指定します。有効なキー(Symbol オブジェクト)と値は以下のとおりです。
: :RequestTimeout
どれだけの時間 クライアントからの入力を待つかを......整数か Float で指定します。
単位は秒です。
: :HTTPVersion
使用する HTTP のバージョンです。WEBrick::HTTPVersion オブジェクトで指定します。デフォルトは 1.1 です。
: :AccessLog
アクセスログの出力先とフォーマットを [[io, format]......形式は Apache のそれに準拠し標準エラー出力に出力します。
http://httpd.apache.org/docs/mod/mod_log_config.html#formats
WEBrick::AccessLog::COMMON_LOG_FORMAT WEBrick::AccessLog::REFERER_LOG_FORMAT
も参照して下さい。
: :MimeTypes
拡張子と mime-type との対... -
WEBrick
:: HTTPResponse # status=(status) (3012.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"... -
WEBrick
:: HTTPResponse # status _ line -> String (3012.0) -
HTTP のステータスラインを CR+LF 付き文字列で返します。
...HTTP のステータスラインを CR+LF 付き文字列で返します。
require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.status = 404
p res.status_line #=> "HTTP/1.1 404 Not Found \r\n"... -
WEBrick
:: HTTPResponse # body=(val) (3006.0) -
クライアントに返す内容(エンティティボディ)をセットします。
...(エンティティボディ)をセットします。
自身が chunked であっても body の値はチャンク形式ではありません。
@param val メッセージボディを文字列か IO オブジェクトで指定します。
自身が chunked であってもチャンク形......ーディングされます。
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
hog... -
WEBrick
:: HTTPResponse # chunked=(flag) (3006.0) -
真に設定するとクライアントに返す内容(エンティティボディ)を chunk に分けるようになります。
...:HTTPResponse#request_http_version が 1.0 以下である場合、この値は無視されます。
@param flag true を指定した場合、レスポンスを chunk に分けてクライアントに返します。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion =>......"1.1" } )
res.body = 'hoge'
res.chunked = true
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 09:04:28 GMT
Server:
Transfer-Encoding: chunked
4
hoge
0
#... -
WEBrick
:: HTTPResponse # content _ length -> Integer | nil (3006.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...れません。
@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 # content _ length=(len) (3006.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...れません。
@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...