804件ヒット
[101-200件を表示]
(0.016秒)
ライブラリ
-
net
/ http (108) -
rubygems
/ source _ index (12) - uri (528)
-
webrick
/ server (144) -
webrick
/ ssl (12)
クラス
-
Gem
:: SourceIndex (12) -
Net
:: HTTPGenericRequest (108) -
URI
:: Generic (528) -
WEBrick
:: GenericServer (156)
キーワード
- + (12)
- - (12)
- == (12)
- [] (12)
- absolute (12)
- absolute? (12)
- body (12)
- body= (12)
-
body
_ exist? (12) -
body
_ stream (12) -
body
_ stream= (12) - coerce (12)
- component (12)
- config (12)
-
default
_ port (12) -
find
_ proxy (12) - fragment (12)
- fragment= (12)
- hierarchical? (12)
- host (12)
- host= (12)
- hostname (12)
- hostname= (12)
- listen (12)
- listeners (12)
- logger (12)
- merge (12)
- merge! (12)
- method (12)
- normalize (12)
- normalize! (12)
- opaque (12)
- opaque= (12)
- parser (12)
- password (12)
- password= (12)
- path (24)
- path= (12)
- port (12)
- port= (12)
- query (12)
- query= (12)
- registry (12)
- registry= (12)
- relative? (12)
-
request
_ body _ permitted? (12) -
response
_ body _ permitted? (12) -
route
_ from (12) -
route
_ to (12) - run (12)
- scheme (12)
- scheme= (12)
- select (12)
- shutdown (12)
-
ssl
_ context (12) - start (24)
- status (12)
- stop (12)
-
to
_ s (12) - tokens (12)
- update (12)
- user (12)
- user= (12)
- userinfo (12)
- userinfo= (12)
検索結果
先頭5件
-
URI
:: Generic # default _ port -> Integer | nil (3007.0) -
self.class.default_port を返します。
...self.class.default_port を返します。
@see URI::Generic.default_port... -
URI
:: Generic # host -> String | nil (3007.0) -
自身の host を文字列で返します。設定されていない場合は nil を返します。
...自身の host を文字列で返します。設定されていない場合は nil を返します。
@see URI::Generic#hostname... -
URI
:: Generic # host=(s) (3007.0) -
自身の host を設定します。
...を設定します。
@param s 自身の host を表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError host と registry を同時に設定した場合に発生します。
@see URI::Generic#hostname=... -
URI
:: Generic # hostname=(s) (3007.0) -
自身の hostname を設定します。
...自身の hostname を設定します。
このメソッドは引数に IPv6 アドレスを設定した場合は
URI::Generic#host にブラケットを追加した文字列を設定しますがそれ
以外は同じ処理を行います。
require 'uri'
u = URI("http://foo/bar")
p u.to_s... -
URI
:: Generic # normalize! -> String | nil (3002.0) -
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと 構成要素がなければ '/' をセットします。
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと
構成要素がなければ '/' をセットします。
例:
require 'uri'
u = URI.parse('http://Example.Com')
p u.to_s #=> "http://Example.Com"
p u.normalize.to_s #=> "http://example.com/" -
Net
:: HTTPGenericRequest # body -> String (3001.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::HTTPGenericRequest#body=... -
Net
:: HTTPGenericRequest # body=(body) (3001.0) -
サーバに送るリクエストのエンティティボディを文字列で設定します。
...。
@param body 設定するボディを文字列で与えます。
//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" # => "Test Post Data"
//}
@see Net::HTTPGenericRequest#body... -
Net
:: HTTPGenericRequest # body _ exist? -> bool (3001.0) -
このメソッドは obsolete です。
...このメソッドは obsolete です。
Net::HTTPGenericRequest#response_body_permitted?
の別名です。... -
Net
:: HTTPGenericRequest # body _ stream -> object (3001.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
サーバに送るリクエストのエンティティボディを
IO オブジェクトなどのストリームで設定します。
f は read(size) メソッドが定義されている必要があります。
@param f エンティティボディのデータを得るストリームオブジェクトを与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
File.open("/path/to/test", 'rb') d...