るりまサーチ

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

別のキーワード

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

ライブラリ

モジュール

検索結果

Net::HTTPHeader#content_type=(type) (18112.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...

Net::HTTPHeader#set_content_type(type, params = {}) (3012.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...

ruby 1.8.2 feature (42.0)

ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。

...[new]
追加。

: OpenSSL::X509::Name::RFC2253DN [lib] [new]
module for RFC2253 DN format.

: OpenSSL::X509::Name.parse_rfc2253 [lib] [new]
new method to parse RFC2253 DN format.

=== 2004-12-18

: Object#id [ruby] [obsolete]
常に警告がでるようになりました。Object#o...
...LV23_PADDING, NO_PADDING and PKCS1_OAEP_PADDING under OpenSSL::PKey::RSA.

=== 2004-12-05
: OptionParser::Completion#complete [lib] [compat]
new parameter to direct case insensitiveness.

: OptionParser#order! [lib] [change]
((<ruby-dev:25048>))

=== 2004-12-04
: NKF.guess [lib] [c...
..._language,
content_length and content_type.

: WEBrick::HTTPResponse#content_length= [lib] [new]
: WEBrick::HTTPResponse#content_type= [lib] [new]
: WEBrick::HTTPUtils.parse_qvalues [lib] [new]
: WEBrick::HTTPServer#virtual_host [lib] [new]
: WEBrick::HTTPServer#lookup_server [lib] [new]
: WEBric...

ruby 1.8.3 feature (42.0)

ruby 1.8.3 feature *((<ruby 1.8 feature>)) *((<ruby 1.8.2 feature>))

...er#main_type [lib] [new]
: Net::HTTPHeader#sub_type [lib] [new]
: Net::HTTPHeader#type_params [lib] [new]
: Net::HTTPHeader#content_type= [lib] [new]
: Net::HTTPHeader#set_content_type [lib] [new]

: Net::HTTPRequest#body(=) [lib] [new]
: Net::HTTPRequest#body_stream(=...
...= 2005-08-29
: Time.parse [lib] [compat]

Time.parse が小数点以下の秒も扱えるようになりました。((<ruby-talk:153859>))

$ ruby-1.8.2 -r time -e 'p Time.parse("23 Aug 2005 19:00:01.1").to_f'
1124791201.0

$ ruby-1.8.3 -r time -e 'p Time.parse("23 Aug 2005 19:00...
...] [new]
: GDBM#closed? [lib] [new]
: SDBM#closed? [lib] [new]

=== 2005-06-16

: Time.parse [lib] [compat]

うるう秒 "Fri Jan 1 08:59:60 +0900 1999" をサポートしている環境において、Time.parse
適切に振舞うようになりました。

=== 2005-06-08
: Curses.insertln...

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

"text/html" のような 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"
//}...

絞り込み条件を変える