ライブラリ
-
net
/ http (715)
キーワード
-
ca
_ file= (12) -
ca
_ path= (12) - cert= (12)
- ciphers= (12)
-
close
_ on _ empty _ response= (12) -
continue
_ timeout= (12) - copy (12)
- delete (12)
- get (24)
- get2 (24)
- head (12)
- head2 (24)
- key= (12)
-
local
_ host= (12) -
local
_ port= (12) - lock (12)
- mkcol (12)
- move (12)
-
open
_ timeout= (12) - patch (24)
- post (24)
- post2 (24)
- propfind (12)
- proppatch (12)
-
proxy
_ address= (12) -
proxy
_ from _ env= (12) -
proxy
_ pass= (12) -
proxy
_ port= (12) -
proxy
_ user= (12) - put (12)
- put2 (24)
-
read
_ timeout= (12) - request (24)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) -
send
_ request (12) -
set
_ debug _ output (12) -
ssl
_ timeout= (12) -
ssl
_ version= (12) - trace (12)
- unlock (12)
-
use
_ ssl= (12) -
verify
_ callback= (12) -
verify
_ depth= (12) -
write
_ timeout= (7)
検索結果
先頭5件
- Net
:: HTTP # request _ post(path , data , header = nil) -> Net :: HTTPResponse - Net
:: HTTP # request _ post(path , data , header = nil) {|response| . . . . } -> Net :: HTTPResponse - Net
:: HTTP # request _ put(path , data , initheader = nil) -> Net :: HTTPResponse - Net
:: HTTP # request _ put(path , data , initheader = nil) {|response| . . . . } -> Net :: HTTPResponse - Net
:: HTTP # delete(path , initheader = nil) -> Net :: HTTPResponse
-
Net
:: HTTP # request _ post(path , data , header = nil) -> Net :: HTTPResponse (6120.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。 返り値は Net::HTTPResponse のインスタンスです。
...の path にあるエンティティに対し文字列 data を
POST で送ります。
返り値は Net::HTTPResponse のインスタンスです。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '...... Net::HTTPResponse
オブジェクトをブロックに渡します。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
@param p......ath POST先のエンティティのパスを文字列で指定します。
@param data POSTするデータを与えます。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
post2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
respons... -
Net
:: HTTP # request _ post(path , data , header = nil) {|response| . . . . } -> Net :: HTTPResponse (6120.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。 返り値は Net::HTTPResponse のインスタンスです。
...の path にあるエンティティに対し文字列 data を
POST で送ります。
返り値は Net::HTTPResponse のインスタンスです。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '...... Net::HTTPResponse
オブジェクトをブロックに渡します。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
@param p......ath POST先のエンティティのパスを文字列で指定します。
@param data POSTするデータを与えます。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
post2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
respons... -
Net
:: HTTP # request _ put(path , data , initheader = nil) -> Net :: HTTPResponse (6120.0) -
サーバ上の path にあるエンティティに対し文字列 data を PUT で送ります。
...path にあるエンティティに対し文字列 data を
PUT で送ります。
返り値は Net::HTTPResponse のインスタンスです。
ブロックとともに呼び出されたときは、
ボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPRespo......ロックに渡します。
@param path 取得するエンティティのパスを文字列で指定します。
@param data 送るデータを文字列で指定します。
@param initheader リクエストの HTTP ヘッダをハッシュで指定します。
put2 は時代遅れなので使わ......ないでください。
@see Net::HTTP#put... -
Net
:: HTTP # request _ put(path , data , initheader = nil) {|response| . . . . } -> Net :: HTTPResponse (6120.0) -
サーバ上の path にあるエンティティに対し文字列 data を PUT で送ります。
...path にあるエンティティに対し文字列 data を
PUT で送ります。
返り値は Net::HTTPResponse のインスタンスです。
ブロックとともに呼び出されたときは、
ボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPRespo......ロックに渡します。
@param path 取得するエンティティのパスを文字列で指定します。
@param data 送るデータを文字列で指定します。
@param initheader リクエストの HTTP ヘッダをハッシュで指定します。
put2 は時代遅れなので使わ......ないでください。
@see Net::HTTP#put... -
Net
:: HTTP # delete(path , initheader = nil) -> Net :: HTTPResponse (6114.0) -
サーバの path に DELETE リクエストを ヘッダを initheader として送ります。
...サーバの path に DELETE リクエストを
ヘッダを initheader として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを......「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Delete... -
Net
:: HTTP # get2(path , header = nil) -> Net :: HTTPResponse (6114.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに分けて取りだしたい場合にはこれを利用します。
@param path 取得するエンティテ......ます。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
//emlist[例][ruby]{
# example
response = http.request_get('/index.html')
p response['content-type']
puts response.body # body is already read
# using block
http.request_get('/index.html') {|resp... -
Net
:: HTTP # get2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (6114.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに分けて取りだしたい場合にはこれを利用します。
@param path 取得するエンティテ......ます。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
//emlist[例][ruby]{
# example
response = http.request_get('/index.html')
p response['content-type']
puts response.body # body is already read
# using block
http.request_get('/index.html') {|resp... -
Net
:: HTTP # options(path , initheader = nil) -> Net :: HTTPResponse (6114.0) -
サーバの path に OPTIONS リクエストを ヘッダが initheader として送り、 レスポンスを Net::HTTPResponse のオブジェクト で返します。
...サーバの path に OPTIONS リクエストを
ヘッダが initheader として送り、
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「文......字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Options... -
Net
:: HTTP # request(request , data = nil) -> Net :: HTTPResponse (6114.0) -
Net::HTTPRequest オブジェクト request をサーバに送信します。
...
Net::HTTPRequest オブジェクト request をサーバに送信します。
POST/PUT の時は data も与えられます
(GET/HEAD などで data を与えると
ArgumentError を発生します)。
ブロックとともに呼びだされたときは
ソケットからボディを読みこ......まずに Net::HTTPResponse
オブジェクトをブロックに与えます。
@param request リクエストオブジェクトを与えます。
@param data リクエストのボディを文字列で与えます。
@raise ArgumentError dataを与えるべきでないリクエストでdataを......与えた場合に発生します。
@see Net::HTTP#send_request...