httparty使用 timeout (using timeout in httparty)

访问量: 3939

an example:
  1 # -*- encoding : utf-8 -*-
  2 class StaticFilesController < ApplicationController
  3   include HTTParty
  4   default_timeout 3
 11   
 12   def get_generator_plans
 13     self.class.get 'some/url'
 14   end
 15 end

订阅/RSS Feed

Subscribe

分类/category