853件ヒット
[501-600件を表示]
(0.085秒)
別のキーワード
クラス
-
CSV
:: FieldInfo (12) -
JSON
:: Parser (12) -
Net
:: HTTPGenericRequest (36) -
Net
:: HTTPResponse (96) - Object (30)
- OptionParser (408)
-
Ripper
:: Lexer (12) -
RubyVM
:: AbstractSyntaxTree :: Node (7) - String (12)
-
URI
:: MailTo (36)
モジュール
-
Net
:: HTTPHeader (144) -
OptionParser
:: Arguable (48)
キーワード
- [] (12)
-
basic
_ auth (12) - body (24)
- code (12)
-
content
_ type (12) -
default
_ argv (12) - delete (12)
- entity (12)
- environment (12)
- fetch (36)
-
get
_ fields (12) - header (12)
- headers (12)
- help (12)
-
http
_ version (12) - inspect (7)
-
main
_ type (12) - method (24)
- msg (12)
- on (144)
- order (48)
- order! (48)
- parse! (24)
-
parse
_ csv (12) - path (12)
- permute (24)
- permute! (24)
-
program
_ name (12) -
proxy
_ basic _ auth (12) -
read
_ body (24) - release (12)
- source (12)
-
sub
_ type (12) -
summary
_ indent (12) - then (14)
-
to
_ a (12) -
to
_ mailtext (12) -
to
_ rfc822text (12) -
to
_ s (12) - ver (12)
-
yield
_ self (16)
検索結果
先頭5件
-
Net
:: HTTPHeader # fetch(key) -> String (285.0) -
key ヘッダフィールドを返します。
...ey のみ指定。key が存在する][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fet......fault を指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.exam... -
Net
:: HTTPHeader # fetch(key) {|hash| . . . . } -> String (285.0) -
key ヘッダフィールドを返します。
...ey のみ指定。key が存在する][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fet......fault を指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.exam... -
Net
:: HTTPHeader # fetch(key , default) -> String (285.0) -
key ヘッダフィールドを返します。
...ey のみ指定。key が存在する][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fet......fault を指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.exam... -
URI
:: MailTo # to _ mailtext -> String (283.0) -
URI オブジェクトからメールテキスト文字列を生成します。
...。
例:
require 'uri'
p mailto = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
print mailto.to_mailtext
=> #<URI::MailTo:0x20104a0e URL:mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr>
To: ruby-list@ruby-lang.org
Subject: subscribe
Cc:... -
URI
:: MailTo # to _ rfc822text -> String (283.0) -
URI オブジェクトからメールテキスト文字列を生成します。
...。
例:
require 'uri'
p mailto = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
print mailto.to_mailtext
=> #<URI::MailTo:0x20104a0e URL:mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr>
To: ruby-list@ruby-lang.org
Subject: subscribe
Cc:... -
Net
:: HTTPResponse # read _ body(dest=nil) -> String|nil (239.0) -
ブロックを与えなかった場合にはエンティティボディを 文字列で返します。 ブロックを与えた場合には エンティティボディを少しずつ取得して順次ブロックに 文字列で与えます。
...取得][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.read_body[0..10] # => "<!doctype h"
//}
//emlist[例2 ブロックを与えて大きいファイルを取得][ruby]{
require 'net/http'
uri = URI.parse('http://ww... -
Net
:: HTTPHeader # [](key) -> String|nil (233.0) -
key ヘッダフィールドを返します。
...す。キーが存在しなければ nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req['user-agent'] # => Ruby
//}
一種類のヘッダフィールドが一つのヘッダの中に複... -
URI
:: MailTo # headers -> [[String]] (233.0) -
自身のヘッダーを文字列の配列の配列として設定します。
...自身のヘッダーを文字列の配列の配列として設定します。
例:
require 'uri'
m = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
p m.headers #=> [["subject", "subscribe"], ["cc", "myaddr"]]... -
Net
:: HTTPResponse # body -> String | () | nil (223.0) -
エンティティボディを返します。
...dapter のインスタンスを返しますが、
これは使わないでください。
entity は obsolete です。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.body[0..10] # => "<!doctype h"
//}...