るりまサーチ

最速Rubyリファレンスマニュアル検索!
232件ヒット [201-232件を表示] (0.028秒)
トップページ > クエリ:content_type[x]

別のキーワード

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

検索結果

<< < 1 2 3 >>

WEBrick::HTTPResponse#[]=(field, val) (6.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...

open-uri (6.0)

http/ftp に簡単にアクセスするためのクラスです。 Kernel.#open を再定義します。

...by-lang.org/en") {|f|
f.each_line {|line| p line}
p f.base_uri # <URI::HTTP:0x40e6ef2 URL:http://www.ruby-lang.org/en/>
p f.content_type # "text/html"
p f.charset # "iso-8859-1"
p f.content_encoding # []
p f.last_modified # Thu Dec 05 02:45:02 UTC 2002...

webrick/cgi (6.0)

一般の CGI 環境で webrick ライブラリのサーブレットと同じように CGI スクリプトを書くための ライブラリです。サーバが WEBrick でなくても使うことが出来ます。

...ら得ることができます。

require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
req.content_length
req.content_type
req.path_info
req.query_string
req.peeraddr
req.host
req.user
req.request_method
req.script_name
req.por...
<< < 1 2 3 >>