首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

Rakc:Test:Methods#get

2012-09-25 
Rakc::Test::Methods#get(Rack::Test::Methods)#get 48# Issue a GET request for the given URI with the

Rakc::Test::Methods#get
(Rack::Test::Methods)#get


48       # Issue a GET request for the given URI with the given params and Rack
49       # environment. Stores the issues request object in #last_request and
50       # the app's response in #last_response. Yield #last_response to a block
51       # if given.
52       #
53       # Example:
54       #   get "/"
55       def get(uri, params = {}, env = {}, &block)
56         env = env_for(uri, env.merge(:method => "GET", :params => params))
57         process_request(uri, env, &block)
58       end

热点排行