24件ヒット
[1-24件を表示]
(0.070秒)
ライブラリ
-
net
/ http (24)
モジュール
-
Net
:: HTTPHeader (24)
検索結果
-
Net
:: HTTPHeader # content _ length=(len) (18119.0) -
Content-Length: ヘッダフィールドに値を設定します。
...ドを
削除します。
@param len 設定する値を整数で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length # => nil
req.content_length = 10 # => 10
req.content_lengt... -
Net
:: HTTPHeader # delete(key) -> [String] | nil (19.0) -
key ヘッダフィールドを削除します。
...ールドを削除します。
@param key 削除するフィールド名
@return 取り除かれたフィールドの値を返します。
key ヘッダフィールドが存在しなかった場合には
nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.pars......e('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length = 10
req.content_length # => 10
req.delete("Content-Length") # => ["10"]
req.content_length # => nil
//}...