564件ヒット
[1-100件を表示]
(0.031秒)
ライブラリ
- mkmf (24)
-
net
/ http (240) - openssl (48)
- pathname (24)
-
rake
/ packagetask (12) -
rexml
/ document (36) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ remote _ fetcher (12) -
win32
/ resolv (12)
クラス
-
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: RemoteFetcher (12) -
Net
:: HTTP (204) -
Net
:: HTTPGenericRequest (12) -
Net
:: HTTPResponse (24) -
OpenSSL
:: SSL :: SSLContext (12) - Pathname (24)
-
REXML
:: Element (36) -
Rake
:: PackageTask (12) -
Win32
:: Resolv (12)
モジュール
- Kernel (24)
-
OpenSSL
:: X509 (24)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
V
_ ERR _ UNABLE _ TO _ GET _ ISSUER _ CERT (12) -
V
_ ERR _ UNABLE _ TO _ GET _ ISSUER _ CERT _ LOCALLY (12) - X509 (12)
- cgi (12)
-
create
_ makefile (12) -
dir
_ config (12) - get2 (24)
-
get
_ elements (12) -
get
_ file _ uri _ path (12) -
get
_ hosts _ path (12) -
get
_ path (12) -
get
_ print (24) -
get
_ response (24) -
get
_ text (12) - getwd (12)
- head2 (24)
-
net
/ http (12) -
package
_ dir _ path (12) - pwd (12)
-
rake
/ gempackagetask (12) - rdoc (12)
-
read
_ body (24) -
request
_ get (24) -
request
_ head (24) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
send
_ request (12) -
set
_ params (12) - text (12)
-
webrick
/ cgi (12)
検索結果
先頭5件
-
Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse (18256.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......さい。
dest を指定した場合には
ボディを少しずつ取得して順次
「dest << ボディの断片」を実行します。
@param path 取得するエンティティのパスを文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定し......version 1.1
response, body = http.get( '/index.html' )
# net/http version 1.2
response = http.get('/index.html')
# compatible in both version
response , = http.get('/index.html')
response.body
# compatible, using block
File.open('save.txt', 'w') {|f|
http.get('/~foo/', nil) do |str|
f.writ... -
Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (18256.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......さい。
dest を指定した場合には
ボディを少しずつ取得して順次
「dest << ボディの断片」を実行します。
@param path 取得するエンティティのパスを文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定し......version 1.1
response, body = http.get( '/index.html' )
# net/http version 1.2
response = http.get('/index.html')
# compatible in both version
response , = http.get('/index.html')
response.body
# compatible, using block
File.open('save.txt', 'w') {|f|
http.get('/~foo/', nil) do |str|
f.writ... -
Net
:: HTTP . get(host , path , port = 80) -> String (18237.0) -
指定した対象に GET リクエストを送り、そのボディを 文字列として返します。
...指定した対象に GET リクエストを送り、そのボディを
文字列として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。
@param host......接続先のホストを文字列で指定します。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP#get... -
Net
:: HTTP . get(uri) -> String (18137.0) -
指定した対象に GET リクエストを送り、そのボディを 文字列として返します。
...指定した対象に GET リクエストを送り、そのボディを
文字列として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。
@param host......接続先のホストを文字列で指定します。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP#get... -
Net
:: HTTPGenericRequest # path -> String (18129.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"
//}... -
Win32
:: Resolv . # get _ hosts _ path -> String | nil (12214.0) -
hosts ファイルのパスを返します。ファイルが存在しない場合は nil を返します。
...hosts ファイルのパスを返します。ファイルが存在しない場合は nil を返します。
例:
require "win32/resolv"
p Win32::Resolv.get_hosts_path #=> "C:\Windows\System32\drivers\etc\hosts"... -
Gem
:: Commands :: UnpackCommand # get _ path(gemname , version _ req) -> String | nil (12202.0) -
引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
@param gemname Gem パッケージの名前を指定します。
@param version_req バージョンの満たすべき条件を文字列で指定します。 -
Gem
:: RemoteFetcher # get _ file _ uri _ path(uri) -> String (12202.0) -
与えられた URI から "file://" を取り除いた文字列を返します。
与えられた URI から "file://" を取り除いた文字列を返します。
@param uri URI を表す文字列を指定します。 -
Pathname
. getwd -> Pathname (9200.0) -
カレントディレクトリを元に Pathname オブジェクトを生成します。 Pathname.new(Dir.getwd) と同じです。
...カレントディレクトリを元に Pathname オブジェクトを生成します。
Pathname.new(Dir.getwd) と同じです。
//emlist[例][ruby]{
require "pathname"
Pathname.getwd #=> #<Pathname:/home/zzak/projects/ruby>
//}
@see Dir.getwd...