819件ヒット
[1-100件を表示]
(0.058秒)
種類
- インスタンスメソッド (600)
- 特異メソッド (120)
- 文書 (56)
- クラス (31)
- ライブラリ (12)
ライブラリ
-
net
/ http (751)
クラス
-
Net
:: HTTP (132) -
Net
:: HTTPGenericRequest (96) -
Net
:: HTTPResponse (108)
モジュール
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (372)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - HTTPRequestURITooLarge (12)
- HTTPRequestURITooLong (12)
- HTTPURITooLong (7)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) - [] (12)
- []= (12)
-
basic
_ auth (12) - body (24)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - chunked? (12)
- code (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) - entity (12)
- fetch (36)
-
form
_ data= (12) - get (24)
-
get
_ fields (12) -
get
_ print (24) -
get
_ response (24) -
http
_ version (12) - key? (12)
-
main
_ type (12) - method (24)
- msg (12)
- new (12)
- path (12)
-
post
_ form (12) -
proxy
_ basic _ auth (12) -
proxy
_ uri (12) - range (12)
-
range
_ length (12) -
read
_ body (24) -
request
_ body _ permitted? (12) - response (12)
-
response
_ body _ permitted? (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
set
_ content _ type (12) -
set
_ form _ data (12) - start (24)
-
sub
_ type (12) -
type
_ params (12) - value (12)
検索結果
先頭5件
-
net
/ http (38144.0) -
汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。
...net/http'
print Net::HTTP.get('www.example.com', '/index.html')
//}
//emlist[例2: URI を使う][ruby]{
require '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......re '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 'uri'
#......例1: POSTするだけ
res = Net::HTTP.post_form(URI.parse('http://www.example.com/search'),
{'q'=>'ruby', 'max'=>'50'})
puts res.body
#例2: 認証付きで POST する
res = Net::HTTP.post_form(URI.parse('http://jack:pass@www.example.com/todo.cgi'),... -
Net
:: HTTP # proxy _ uri -> String|nil (14107.0) -
このメソッドは内部用なので使わないでください。
...このメソッドは内部用なので使わないでください。
環境変数 http_proxy から得られるプロクシの URI を返します。... -
Net
:: HTTPRequestURITooLong (14016.0) -
HTTP レスポンス 414 (URI Too Large) を表現するクラスです。
...HTTP レスポンス 414 (URI Too Large) を表現するクラスです。
詳しくは 7231 Section 6.5.12 を見てください。... -
Net
:: HTTPURITooLong (14016.0) -
HTTP レスポンス 414 (URI Too Large) を表現するクラスです。
...HTTP レスポンス 414 (URI Too Large) を表現するクラスです。
詳しくは 7231 Section 6.5.12 を見てください。... -
Net
:: HTTPRequestURITooLarge (14000.0) -
Alias of Net::HTTPURITooLong
...Alias of Net::HTTPRequestURITooLong......Alias of Net::HTTPURITooLong... -
Net
:: HTTPRequestURITooLong (14000.0) -
Alias of Net::HTTPURITooLong
...Alias of Net::HTTPURITooLong... -
Net
:: HTTP . get _ print(uri) -> () (8143.0) -
指定した対象から HTTP でエンティティボディを取得し、 $stdout に出力します。
...ィボディを取得し、
$stdout に出力します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。
@param host 接続先のホストを文字列で指定しま......ートを整数で指定します。
@see Net::HTTP.get
=== 例
//emlist[][ruby]{
require 'net/http'
require 'uri'
Net::HTTP.get_print URI.parse('http://www.example.com/index.html')
//}
もしくは
//emlist[][ruby]{
require 'net/http'
Net::HTTP.get_print 'www.example.com', '/index.html'
//}... -
Net
:: HTTP . post _ form(uri , params) -> Net :: HTTPResponse (8129.0) -
URI で指定した対象に フォームのデータを HTTP で POST します。
...URI で指定した対象に フォームのデータを HTTP で
POST します。
送るデータは params に文字列から文字列への Hash として
渡します。
@param uri POST する対象を URI で指定します。
@param params POST するデータです。... -
Net
:: HTTP . get(uri) -> String (8119.0) -
指定した対象に GET リクエストを送り、そのボディを 文字列として返します。
...り、そのボディを
文字列として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。
@param host 接続先のホストを文字列で指定しま... -
Net
:: HTTP . get _ response(uri) -> Net :: HTTPResponse (8119.0) -
指定した対象に GET リクエストを送り、そのレスポンスを Net::HTTPResponse として返します。
...スポンスを
Net::HTTPResponse として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。
@param host 接続先のホストを文字列で指定しま...