480件ヒット
[401-480件を表示]
(0.082秒)
ライブラリ
-
net
/ http (408) - uri (12)
-
webrick
/ httprequest (36) -
webrick
/ httpresponse (24)
クラス
-
Net
:: HTTPGenericRequest (96) -
URI
:: HTTP (12) -
WEBrick
:: HTTPRequest (36) -
WEBrick
:: HTTPResponse (24)
モジュール
-
Net
:: HTTPHeader (312)
キーワード
- [] (12)
- []= (12)
-
basic
_ auth (12) - body (12)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - chunked? (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (12) -
content
_ type= (12) - delete (12)
- each (12)
-
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - fetch (36)
-
form
_ data= (12) - method (24)
- path (12)
-
proxy
_ basic _ auth (12) -
query
_ string (12) -
query
_ string= (12) - range (12)
-
range
_ length (12) -
request
_ body _ permitted? (12) -
request
_ uri= (12) -
response
_ body _ permitted? (12) -
set
_ content _ type (12) -
set
_ form _ data (12)
検索結果
先頭5件
-
Net
:: HTTPHeader # each _ key {|name| . . . } -> () (7.0) -
保持しているヘッダ名をブロックに渡して呼びだします。
...呼びだします。
ヘッダ名は小文字で統一されます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_name { |name| puts name }
# => accept-encoding
# => accept
# => user-agent
//}... -
Net
:: HTTPHeader # each _ name {|name| . . . } -> () (7.0) -
保持しているヘッダ名をブロックに渡して呼びだします。
...呼びだします。
ヘッダ名は小文字で統一されます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_name { |name| puts name }
# => accept-encoding
# => accept
# => user-agent
//}... -
Net
:: HTTPHeader # each _ value {|value| . . . . } -> () (7.0) -
保持しているヘッダの値をブロックに渡し、呼びだします。
...れる文字列は ", " で連結したものです。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_value { |value| puts value }
# => gzip;q=1.0,deflate;q=0.6,identity;q=0.3
# => */*
# => Ruby
//}... -
Net
:: HTTPHeader # method -> String (7.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] (7.0) -
Proxy 認証のために Proxy-Authorization: ヘッダをセットします。
...ます。
@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") # => ["Basic YWNjb3VudDpwYXNzd29yZA=="]
//}... -
Net
:: HTTPHeader # range _ length -> Integer|nil (7.0) -
Content-Range: ヘッダフィールドの表している長さを整数で返します。
...発生します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req['Content-Range'] = "bytes 1-500/1000"
req.range_length # => 500
//}... -
Net
:: HTTPHeader # set _ content _ type(type , params = {}) (7.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...