660件ヒット
[1-100件を表示]
(0.087秒)
ライブラリ
-
net
/ http (96) -
rubygems
/ source _ index (12) - uri (396)
-
webrick
/ server (144) -
webrick
/ ssl (12)
クラス
-
Gem
:: SourceIndex (12) -
Net
:: HTTPGenericRequest (96) -
URI
:: Generic (396) -
WEBrick
:: GenericServer (156)
キーワード
- + (12)
- == (12)
- [] (12)
- absolute (12)
- absolute? (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)
- hierarchical? (12)
- host (12)
- hostname (12)
- listen (12)
- listeners (12)
- logger (12)
- merge (12)
- merge! (12)
- method (12)
- normalize (12)
- normalize! (12)
- opaque (12)
- parser (12)
- password (12)
- path (24)
- port (12)
- query (12)
- registry (12)
- relative? (12)
-
request
_ body _ permitted? (12) -
response
_ body _ permitted? (12) -
route
_ from (12) -
route
_ to (12) - run (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)
- userinfo (12)
- userinfo= (12)
検索結果
先頭5件
-
URI
:: Generic # -(src) -> URI :: Generic (21215.0) -
与えられた URI を表す src からの相対パスを返します。
...rc からの相対パスを返します。
@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。
例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x20100256 URL:foo/bar.html>... -
URI
:: Generic # route _ from(src) -> URI :: Generic (6215.0) -
与えられた URI を表す src からの相対パスを返します。
...rc からの相対パスを返します。
@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。
例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x20100256 URL:foo/bar.html>... -
URI
:: Generic # route _ to(dst) -> URI :: Generic (3208.0) -
自身から dst への相対パスを返します。
...自身から dst への相対パスを返します。
@param dst URI を文字列かURIオブジェクトで与えます。
例:
require 'uri'
p URI.parse('http://example.com/').route_to('http://example.com/foo/bar.html')
#=> #<URI::Generic:0x20100198 URL:foo/bar.html>... -
URI
:: Generic # +(rel) -> URI :: Generic (3203.0) -
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。
@param rel 連結したいパスを文字列か URI オブジェクトで与えます。
例:
require 'uri'
p URI.parse('http://example.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo... -
URI
:: Generic # merge(rel) -> URI :: Generic (3203.0) -
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。
@param rel 連結したいパスを文字列か URI オブジェクトで与えます。
例:
require 'uri'
p URI.parse('http://example.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo... -
URI
:: Generic # normalize -> URI :: Generic (3202.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/" -
URI
:: Generic # hostname -> String | nil (3123.0) -
自身の hostname を文字列で返します。また、URI::Generic#host が設 定されていない場合は nil を返します。
...自身の hostname を文字列で返します。また、URI::Generic#host が設
定されていない場合は nil を返します。
このメソッドは URI::Generic#host に IPv6 アドレスが設定されていた
場合はブラケットを削除した文字列を返しますがそれ以... -
Net
:: HTTPGenericRequest # body _ stream -> object (3107.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...e.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
File.open("/path/to/test", 'rb') do |f|
# 大きなファイルを扱う際にメモリ消費を少なくできる
post.body_stream = f
post["Content-Length"] = f.size
end
post.body_stream # => #<File:/path/to/test (closed)>
//}... -
URI
:: Generic # component -> [Symbol] (3107.0) -
self.class.component を返します。
...self.class.component を返します。
@see URI::Generic.component...