るりまサーチ

最速Rubyリファレンスマニュアル検索!
48件ヒット [1-48件を表示] (0.054秒)
トップページ > クエリ:p[x] > クエリ:get2[x]

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. rsa p
  5. kernel p

ライブラリ

クラス

検索結果

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

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

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

header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という...
...続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに分けて取りだしたい場合にはこれを利用します。

@param path 取得するエンティティ...
...example
response = http.request_get('/index.html')
p
response['content-type']
p
uts 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
p
rint str
end
}
//}

get2
...

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

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

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

header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という...
...続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに分けて取りだしたい場合にはこれを利用します。

@param path 取得するエンティティ...
...example
response = http.request_get('/index.html')
p
response['content-type']
p
uts 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
p
rint str
end
}
//}

get2
...

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

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

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

header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という...
...続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに分けて取りだしたい場合にはこれを利用します。

@param path 取得するエンティティ...
...example
response = http.request_get('/index.html')
p
response['content-type']
p
uts 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
p
rint str
end
}
//}

get2
...

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

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

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

header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という...
...続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに分けて取りだしたい場合にはこれを利用します。

@param path 取得するエンティティ...
...example
response = http.request_get('/index.html')
p
response['content-type']
p
uts 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
p
rint str
end
}
//}

get2
...