るりまサーチ

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

別のキーワード

  1. rss content
  2. rss content=
  3. net/imap content_id
  4. source content=
  5. rss20 content

ライブラリ

クラス

キーワード

検索結果

WEBrick::HTTPResponse#content_type -> String | nil (21102.0)

Content-Type ヘッダの値を返します。

Content-Type ヘッダの値を返します。

WEBrick::HTTPResponse#content_type=(val) (9108.0)

Content-Type ヘッダの値をセットします。

...Content-Type ヘッダの値をセットします。

@param val Content-Type ヘッダの値を文字列で指定します。

res.content_type = "text/html"

@see WEBrick::HTTPUtils.#mime_type...

WEBrick::HTTPResponse#[]=(field, val) (3007.0)

レスポンスの該当するヘッダに val を設定します。

...せん。

@param val ヘッダの値を指定します。to_s メソッドによって文字列に変換されます。

require 'time'
res['last-modified'] = Time.now.httpdate

@see WEBrick::HTTPResponse#chunked?, WEBrick::HTTPResponse#content_length,
WEBrick::HTTPResponse#content_type...