るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file open
  4. file lstat
  5. file size

ライブラリ

モジュール

キーワード

検索結果

WEBrick::HTTPRequest#query -> Hash (18114.0)

リクエストのクエリーあるいはクライアントがフォームへ入力した値を表すハッシュを返します。

...巨大な文字列が
生成されてしまいます。

例:

h = req.query
p h['q'] #=> "ruby rails session"
p h['upfile']['content-type'] #=> "plain/text"
p h['upfile'].filename #=> "my_file.txt"
p h['upfile'] #=> "hoge hoge hoge"...

CGI::QueryExtension#files -> Hash (9101.0)

アップロードされたファイルの名前とその内容を表すオブジェクトをペアとする要素を持つハッシュを返します。

アップロードされたファイルの名前とその内容を表すオブジェクトをペアとする要素を持つハッシュを返します。

CGI::QueryExtension#unescape_filename? -> bool (9101.0)

WEBrick::HTTPUtils::FormData#filename -> String | nil (6113.0)

フォームデータの filename 属性を文字列で表すアクセサです。

...データの filename 属性を文字列で表すアクセサです。

@param value フォームデータの filename 属性を文字列で指定します。

例:

require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].filename #=> "my_file.txt"
end...

WEBrick::HTTPUtils::FormData#filename=(value) (6113.0)

フォームデータの filename 属性を文字列で表すアクセサです。

...データの filename 属性を文字列で表すアクセサです。

@param value フォームデータの filename 属性を文字列で指定します。

例:

require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].filename #=> "my_file.txt"
end...

絞り込み条件を変える

CGI::QueryExtension#create_body(is_large) -> StringIO | Tempfile (3101.0)

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

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

...esponse, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')

# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')

# using block
File
.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=ruby') do |str|
f.write str...

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

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

...esponse, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')

# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')

# using block
File
.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=ruby') do |str|
f.write str...