1141件ヒット
[1-100件を表示]
(0.030秒)
種類
- インスタンスメソッド (660)
- 特異メソッド (264)
- 文書 (133)
- ライブラリ (72)
- モジュール関数 (12)
ライブラリ
- ビルトイン (12)
-
net
/ http (612) - open-uri (24)
-
rubygems
/ remote _ fetcher (12) - uri (108)
-
webrick
/ httpauth / htdigest (24) -
webrick
/ httpauth / htgroup (24) -
webrick
/ httpauth / htpasswd (24) -
webrick
/ httprequest (36) -
webrick
/ httpserver (24) -
webrick
/ httpservlet / filehandler (12) -
webrick
/ httputils (12)
クラス
-
CGI
:: Cookie (12) - Dir (12)
-
Gem
:: RemoteFetcher (12) -
Net
:: HTTP (540) -
Net
:: HTTPGenericRequest (36) -
Net
:: HTTPRequest (12) -
Net
:: HTTPResponse (24) -
URI
:: Generic (24) -
URI
:: HTTP (48) -
WEBrick
:: HTTPAuth :: Htdigest (24) -
WEBrick
:: HTTPAuth :: Htgroup (24) -
WEBrick
:: HTTPAuth :: Htpasswd (24) -
WEBrick
:: HTTPRequest (36) -
WEBrick
:: HTTPServer (12) -
WEBrick
:: HTTPServer :: MountTable (12) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (12)
モジュール
- OpenURI (24)
- URI (36)
-
WEBrick
:: HTTPUtils (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 1 . 0 (4) - Ruby用語集 (12)
-
body
_ stream (12) -
body
_ stream= (12) - build (24)
-
ca
_ file= (12) -
ca
_ path (12) -
ca
_ path= (12) -
cert
_ store= (12) - cgi (12)
- chroot (12)
- copy (12)
- delete (12)
-
escape
_ path (12) - flush (36)
- get (48)
- get2 (24)
-
get
_ print (24) -
get
_ response (24) - head (12)
- head2 (24)
- join (12)
- lock (12)
- mkcol (12)
- move (12)
-
net
/ http (12) - new (96)
-
open
_ uri (24) -
open
_ uri _ or _ path (12) - parse (12)
- patch (24)
-
path
_ info (12) -
path
_ info= (12) - post (24)
- post2 (24)
- propfind (12)
- proppatch (12)
- put (12)
- put2 (24)
- rdoc (12)
-
read
_ body (24) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) -
request
_ uri (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 8 . 5 feature (12) -
ruby 1
. 9 feature (12) - rubygems (12)
-
rubygems
/ commands / mirror _ command (12) - scan (12)
- select (12)
-
send
_ request (12) - split (12)
- trace (12)
- unlock (12)
-
webrick
/ cgi (12)
検索結果
先頭5件
-
Net
:: HTTPGenericRequest # path -> String (21141.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"
//}... -
WEBrick
:: HTTPRequest # path -> String (21101.0) -
リクエスト URI のパスを表す文字列を返します。
リクエスト URI のパスを表す文字列を返します。 -
URI
:: Generic # path -> String | nil (18159.0) -
自身の path を文字列で返します。設定されていない場合は nil を返します。
...自身の path を文字列で返します。設定されていない場合は nil を返します。
require 'uri'
p URI.parse('http://example.com/hoge').path #=> "/hoge"
p URI.parse('http://example.com').path #=> ""
p URI.parse('mailto:nospam@localhost').path #=> n......il
p URI('ftp://example.com/foo').path #=> 'foo'
p URI('ftp://example.com/%2Ffoo').path #=> '/foo'... -
Net
:: HTTP # ca _ path=(path) (9232.0) -
信頼する CA 証明書ファイルが存在するディレクトリを設定します。
...イル名はハッシュ値の文字列にしなければなりません。
詳しくは OpenSSL::SSL::SSLContext#ca_path= を見てください。
デフォルトは nil (指定なし)です。
@param path ディレクトリ名文字列
@see Net::HTTP#ca_path, OpenSSL::SSL::SSLContext#ca_path=... -
Net
:: HTTP # ca _ path -> String | nil (9119.0) -
信頼する CA 証明書ファイルが存在するディレクトリを設定します。
...信頼する CA 証明書ファイルが存在するディレクトリを設定します。
@see Net::HTTP#ca_path=, OpenSSL::SSL::SSLContext#ca_path... -
WEBrick
:: HTTPRequest # path _ info -> String (9117.0) -
リクエスト URI のパスを文字列で返します。デフォルトは path と同じです。
...リクエスト URI のパスを文字列で返します。デフォルトは path と同じです。... -
WEBrick
:: HTTPRequest # path _ info=(value) (9101.0) -
リクエスト URI のパスをセットします。
リクエスト URI のパスをセットします。
@param value リクエスト URI のパスを指定します。 -
WEBrick
:: HTTPUtils . # escape _ path(str) -> String (9101.0) -
与えられた文字列を数値参照文字列に変換します。
与えられた文字列を数値参照文字列に変換します。
以下の正規表現を使用して変換します。
num = '0123456789'
lowalpha = 'abcdefghijklmnopqrstuvwxyz'
upalpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
mark = '-_.!~*\'()'
unreserved = num + lowalpha + upalpha + mark
/[^#{Regexp.escape(unreserved + ":@&=+$,")}]/n
@param str 文字列を指定します。... -
net
/ http (6304.0) -
汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。
...データ転送プロトコル HTTP を扱うライブラリです。
実装は 2616 に基きます。
=== 使用例
==== ウェブサーバからドキュメントを得る (GET)
//emlist[例1: GET して 表示するだけ][ruby]{
require 'net/http'
print Net::HTTP.get('www.example.com', '/ind......uire 'net/http'
require 'uri'
print Net::HTTP.get(URI.parse('http://www.example.com/index.html'))
//}
//emlist[例3: より汎用的な例][ruby]{
require 'net/http'
require 'uri'
url = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.start(url.host, url.port) {|http|
http.get('/in......require 'net/http'
url = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(url.path)
res = Net::HTTP.start(url.host, url.port) {|http|
http.request(req)
}
puts res.body
//}
==== フォームの情報を送信する (POST)
//emlist[例][ruby]{
require 'net/http'
require 'ur...