るりまサーチ

最速Rubyリファレンスマニュアル検索!
66件ヒット [1-66件を表示] (0.165秒)

別のキーワード

  1. net/http get
  2. http get
  3. http start
  4. net/http start
  5. net/http delete

検索結果

WEBrick::HTTPResponse#http_version -> WEBrick::HTTPVersion (24314.0)

レスポンスの HTTP のバージョンを表す WEBrick::HTTPVersion オブジェクトを返します。

...ンを表す WEBrick::HTTPVersion オブジェクトを返します。

require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )
p res.http_version.class #=> WEBrick::HTTPVersion
p res.http_version.to_s...

WEBrick::HTTPRequest#http_version -> WEBrick::HTTPVersion (24302.0)

リクエストの HTTP バージョンを表す WEBrick::HTTPVersion オブジェクトを返します。

...リクエストの HTTP バージョンを表す WEBrick::HTTPVersion オブジェクトを返します。...

Net::HTTPResponse#http_version -> String (24208.0)

サーバがサポートしている HTTP のバージョンを文字列で返します。

...サーバがサポートしている HTTP のバージョンを文字列で返します。

//emlist[例][ruby]{
require 'net/http'

uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.http_version # => "1.1"
//}...

WEBrick::HTTPResponse#request_http_version -> WEBrick::HTTPVersion (12318.0)

リクエストの HTTP バージョンを返します。 デフォルトでは自身の WEBrick::HTTPResponse#http_version が使われます。

...リクエストの HTTP バージョンを返します。
デフォルトでは自身の WEBrick::HTTPResponse#http_version が使われます。...

WEBrick::HTTPResponse#request_http_version=(ver) (12202.0)

リクエストの HTTP バージョンをセットします。

...リクエストの HTTP バージョンをセットします。

@param ver リクエストの HTTP バージョンを WEBrick::HTTPVersion オブジェクトで指定します。...

絞り込み条件を変える

WEBrick::HTTPResponse#chunked=(flag) (6107.0)

真に設定するとクライアントに返す内容(エンティティボディ)を chunk に分けるようになります。

...(エンティティボディ)を chunk に分けるようになります。

自身の WEBrick::HTTPResponse#request_http_version が 1.0 以下である場合、この値は無視されます。

@param flag true を指定した場合、レスポンスを chunk に分けてクライアントに返...
...quire '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...