るりまサーチ

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

別のキーワード

  1. request new
  2. http request_get
  3. net/http request_get
  4. http request_put
  5. http request_post

ライブラリ

クラス

検索結果

Net::HTTP#request_get(path, header = nil) -> Net::HTTPResponse (15121.0)

サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。

...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') {|response|
p response['content-type']
response.read_body do |str| # read body now
print
str
end
}
//}

get2...

Net::HTTP#request_get(path, header = nil) {|response| .... } -> Net::HTTPResponse (15121.0)

サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。

...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') {|response|
p response['content-type']
response.read_body do |str| # read body now
print
str
end
}
//}

get2...

Net::HTTP#get2(path, header = nil) -> Net::HTTPResponse (21.0)

サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。

...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') {|response|
p response['content-type']
response.read_body do |str| # read body now
print
str
end
}
//}

get2...

Net::HTTP#get2(path, header = nil) {|response| .... } -> Net::HTTPResponse (21.0)

サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。

...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') {|response|
p response['content-type']
response.read_body do |str| # read body now
print
str
end
}
//}

get2...