るりまサーチ

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

別のキーワード

  1. request new
  2. request sign
  3. request verify
  4. request to_der
  5. http request_get

ライブラリ

検索結果

<< < ... 2 3 4 >>

Net::HTTPHeader#set_content_type(type, params = {}) (8.0)

type と params から Content-Type: ヘッダフィールドの 値を設定します。

...指定します。

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

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data' # => "multipart/form-data"
req.content_type...
<< < ... 2 3 4 >>