Sha256: 9dc1aca7d8ab21fdee195922839ce3d2248214a953a41e7a96b80162ade29166

Contents?: true

Size: 689 Bytes

Versions: 13

Compression:

Stored size: 689 Bytes

Contents

module RestCore
  Universal = Builder.client do
    use DefaultSite   , nil
    use DefaultHeaders, {}
    use DefaultQuery  , {}
    use DefaultPayload, {}
    use JsonRequest   , false
    use AuthBasic     , nil, nil
    use Retry         , 0, Retry::DefaultRetryExceptions
    use Timeout       , 0
    use ErrorHandler  , nil
    use ErrorDetectorHttp

    use SmashResponse , false
    use ClashResponse , false
    use  JsonResponse , false
    use QueryResponse , false
    use FollowRedirect, 10
    use CommonLogger  , method(:puts)
    use Cache         , {}, 600 # default :expires_in 600 but the default
                                # cache {} didn't support it
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rest-core-3.6.0 lib/rest-core/client/universal.rb
rest-core-3.5.92 lib/rest-core/client/universal.rb
rest-core-3.5.91 lib/rest-core/client/universal.rb
rest-core-3.5.9 lib/rest-core/client/universal.rb
rest-core-3.5.8 lib/rest-core/client/universal.rb
rest-core-3.5.7 lib/rest-core/client/universal.rb
rest-core-3.5.6 lib/rest-core/client/universal.rb
rest-core-3.5.5 lib/rest-core/client/universal.rb
rest-core-3.5.4 lib/rest-core/client/universal.rb
rest-core-3.5.3 lib/rest-core/client/universal.rb
rest-core-3.5.2 lib/rest-core/client/universal.rb
rest-core-3.5.1 lib/rest-core/client/universal.rb
rest-core-3.5.0 lib/rest-core/client/universal.rb