るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.017秒)
トップページ > 種類:インスタンスメソッド[x] > バージョン:2.2.0[x] > クエリ:type[x] > ライブラリ:webrick/httpresponse[x]

別のキーワード

  1. rexml/document node_type
  2. win32ole ole_type
  3. rss type
  4. rss type=
  5. net/imap media_type

クラス

キーワード

検索結果

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

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

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

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

res.content_type = "text/html"

@see WEBrick::HTTPUtils.#mime_type

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

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

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

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

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

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

@param field ヘッダ名を文字列で指定します。大文字と小文字を区別しません。

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

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

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