るりまサーチ

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

別のキーワード

  1. openssl to_text
  2. prettyprint text
  3. cgi text_field
  4. rexml/document text
  5. htmlextension text_field

検索結果

<< 1 2 3 > >>

REXML::Instruction#content -> String | nil (18126.0)

XML 処理命令の内容を返します。

...ersion="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}...

Net::IMAP::BodyTypeText#content_id -> String | nil (9118.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@see 2045...

OpenURI::Meta#content_type -> String (6162.0)

対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。 Content-Type ヘッダがない場合は、"application/octet-stream" を返します。

... Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content
-Type ヘッダがない場合は、"application/octet-stream" を返します。

//emlist[例][ruby]{
require 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.content_type #=> "text/h...
... Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content
-Type ヘッダがない場合は、"application/octet-stream" を返します。

//emlist[例][ruby]{
require 'open-uri'
URI.open('http://www.ruby-lang.org/') {|f|
p f.content_type #=> "text/...

Net::HTTPHeader#content_type -> String|nil (6158.0)

"text/html" のような Content-Type を表す 文字列を返します。

..."text/html" のような Content-Type を表す
文字列を返します。

Content
-Type: ヘッダフィールドが存在しない場合には nil を返します。

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

uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post...
....new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data'
req.content_type # => "multipart/form-data"
//}...

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

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

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

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

res.content_type = "text/html"

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

絞り込み条件を変える

Net::IMAP::BodyTypeText#disposition -> Net::IMAP::ContentDisposition | nil (3117.0)

Content-Dispotition の値を返します。

...Content-Dispotition の値を返します。

Net::IMAP::ContentDisposition オブジェクトを返します。

@see 1806, 2183...

Net::IMAP::BodyTypeText#description -> String | nil (3017.0)

Content-Description の値を文字列で返します。

...Content-Description の値を文字列で返します。

@see 2045...

Net::IMAP::BodyTypeText#encoding -> String (3017.0)

Content-Transfer-Encoding の値を文字列で返します。

...Content-Transfer-Encoding の値を文字列で返します。

@see 2045...

CGI#header(options = "text/html") -> String (192.0)

HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。

...ません。

ヘッダのキーとしては以下が利用可能です。

: type
Content
-Type ヘッダです。デフォルトは "text/html" です。
: charset
ボディのキャラクタセットを Content-Type ヘッダに追加します。
: nph
真偽値を指定します。真なら...
...対応します。
: length
送信するコンテンツの長さを指定します。Content-Length ヘッダに対応します。
: language
送信するコンテンツの言語を指定します。Content-Language ヘッダに対応します。
: expires
送信するコンテンツの有効...
...

status パラメータには以下の文字列が使えます。

"OK" --> "200 OK"
"PARTIAL_CONTENT" --> "206 Partial Content"
"MULTIPLE_CHOICES" --> "300 Multiple Choices"
"MOVED" --> "301 Moved Permanently"
"REDIRE...
<< 1 2 3 > >>