るりまサーチ

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

別のキーワード

  1. _builtin puts
  2. csv puts
  3. stringio puts
  4. io puts
  5. zlib puts

ライブラリ

クラス

検索結果

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

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

...'/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 (18115.0)

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

...'/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) -> Net::HTTPResponse (3015.0)

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

...'/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 (3015.0)

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

...'/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
は時代遅れなので使わないで...