Sha256: 609d399656d2054578367dd9068921aa13422f433890bc7be335d5346e8c11d4

Contents?: true

Size: 635 Bytes

Versions: 6

Compression:

Stored size: 635 Bytes

Contents

module RestCore
  Universal = Builder.client do
    use Timeout       , 0

    use DefaultSite   , nil
    use DefaultHeaders, {}
    use DefaultQuery  , {}
    use DefaultPayload, {}
    use JsonRequest   , false
    use AuthBasic     , nil, nil
    use CommonLogger  , method(:puts)
    use ErrorHandler  , nil
    use ErrorDetectorHttp

    use SmashResponse , false
    use ClashResponse , false
    use  JsonResponse , false
    use QueryResponse , false

    use Cache         , {}, 600 # default :expires_in 600 but the default
                                # cache {} didn't support it

    use FollowRedirect, 10
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rest-core-3.4.1 lib/rest-core/client/universal.rb
rest-core-3.4.0 lib/rest-core/client/universal.rb
rest-core-3.3.3 lib/rest-core/client/universal.rb
rest-core-3.3.2 lib/rest-core/client/universal.rb
rest-core-3.3.1 lib/rest-core/client/universal.rb
rest-core-3.3.0 lib/rest-core/client/universal.rb