るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.018秒)
トップページ > クエリ:start[x] > バージョン:2.3.0[x] > クエリ:accept[x] > ライブラリ:net/http[x]

別のキーワード

  1. smtp start
  2. net/smtp start
  3. http start
  4. pop3 start
  5. pop start

クラス

検索結果

Net::HTTP#head(path, header = nil) -> Net::HTTPResponse (43.0)

サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse のインスタンスを返します。

...ュで指定します。

1.1 互換モードの場合は、レスポンスに応じて例外が発生します。

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

response = nil
Net::HTTP.start('some.www.server', 80) {|http|
response = http.head('/index.html')
}
p response['content-type']
//}

@see Net:...