853件ヒット
[601-700件を表示]
(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
:: 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"
//}... -
Net
:: HTTPResponse # entity -> 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"
//}... -
Net
:: HTTPResponse # message -> String (223.0) -
HTTP サーバがリザルトコードに付加して返すメッセージです。 例えば 'Not Found' などです。
...して返すメッセージです。
例えば 'Not Found' などです。
msg は obsolete です。使わないでください。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.message # => "OK"
//}... -
Net
:: HTTPResponse # msg -> String (223.0) -
HTTP サーバがリザルトコードに付加して返すメッセージです。 例えば 'Not Found' などです。
...して返すメッセージです。
例えば 'Not Found' などです。
msg は obsolete です。使わないでください。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.message # => "OK"
//}... -
CSV
:: FieldInfo # header -> String | nil (221.0) -
利用可能な場合はヘッダを表す文字列を返します。
...場合はヘッダを表す文字列を返します。
//emlist[例][ruby]{
require 'csv'
csv = CSV.new("date1,date2\n2018-07-09,2018-07-10", headers: true)
csv.convert do |field,field_info|
p field_info.header
Date.parse(field)
end
p csv.first
# => "date1"
# => "date2"
# => #<CSV::Row "date1... -
Net
:: HTTPGenericRequest # body -> String (221.0) -
サーバに送るリクエストのエンティティボディを返します。
...サーバに送るリクエストのエンティティボディを返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.body = "Test Post Data"
req.body # => "Test Post Data"
//}
@see Net::HTTPGe... -
Net
:: HTTPGenericRequest # method -> String (221.0) -
リクエストの HTTP メソッドを文字列で返します。
...リクエストの HTTP メソッドを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.method # => "POST"
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}... -
Net
:: HTTPGenericRequest # path -> String (221.0) -
リクエストする path を文字列で返します。
...リクエストする path を文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.path # => "/index.html"
//}... -
Net
:: HTTPHeader # basic _ auth(account , password) -> [String] (221.0) -
Authorization: ヘッダを BASIC 認証用にセットします。
...nt アカウント名を文字列で与えます。
@param password パスワードを文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.basic_auth("user", "pass") # => ["Basic dXNlc...