るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.021秒)

別のキーワード

  1. request new
  2. request to_der
  3. request sign
  4. request verify
  5. net/http request

クラス

検索結果

Net::HTTP#post(path, data, header = nil, dest = nil) -> Net::HTTPResponse (82.0)

サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。

...例外が発生します。
また、返り値が [レスポンスオブジェクト, そのボディ] となります。

//emlist[例][ruby]{
# net/http version 1.1
response, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')

# version 1.2
response = http.post('/cgi-bin/search.rb...

Net::HTTP#post(path, data, header = nil, dest = nil) {|body_segment| .... } -> Net::HTTPResponse (82.0)

サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。

...例外が発生します。
また、返り値が [レスポンスオブジェクト, そのボディ] となります。

//emlist[例][ruby]{
# net/http version 1.1
response, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')

# version 1.2
response = http.post('/cgi-bin/search.rb...