853件ヒット
[701-800件を表示]
(0.112秒)
別のキーワード
クラス
-
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 # 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... -
Net
:: HTTPHeader # content _ type -> String|nil (221.0) -
"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.cont... -
Net
:: HTTPHeader # delete(key) -> [String] | nil (221.0) -
key ヘッダフィールドを削除します。
...ます。
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.content_length = 10
req.content_length # =>... -
Net
:: HTTPHeader # get _ fields(key) -> [String] (221.0) -
key ヘッダフィールドの値 (文字列) を配列で返します。
...は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.get_fields('accept-ranges') # => ["none"]
//}
@see N... -
Net
:: HTTPHeader # main _ type -> String|nil (221.0) -
"text/html" における "text" のようなタイプを表す 文字列を返します。
...タイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.main_type # => "text"
//}... -
Net
:: HTTPHeader # method -> String (221.0) -
リクエストの HTTP メソッドを文字列で返します。
...リクエストの HTTP メソッドを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}... -
Net
:: HTTPHeader # proxy _ basic _ auth(account , password) -> [String] (221.0) -
Proxy 認証のために Proxy-Authorization: ヘッダをセットします。
...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.proxy_basic_auth("account", "password") # =>... -
Net
:: HTTPHeader # sub _ type -> String|nil (221.0) -
"text/html" における "html" のようなサブタイプを表す 文字列を返します。
...タイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.sub_type # => "html"
//}... -
Net
:: HTTPResponse # code -> String (221.0) -
HTTP のリザルトコードです。例えば '302' などです。
...スオブジェクトがどのクラスのインスタンスかを
見ることでもレスポンスの種類を判別できます。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.code # => "200"
//}... -
Net
:: HTTPResponse # http _ version -> String (221.0) -
サーバがサポートしている HTTP のバージョンを文字列で返します。
...サーバがサポートしている HTTP のバージョンを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.http_version # => "1.1"
//}...