1件ヒット
[1-1件を表示]
(0.024秒)
クラス
-
Net
:: HTTP (1)
検索結果
-
Net
:: HTTP # head(path , header = nil) -> Net :: HTTPResponse (54667.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:...