Skip to content

HTTP Request Timeout and HTTP Response Read Timeout parameters can be overwritten when SDK Instance initialized. #314

@muratorema

Description

@muratorema

Example:

Craftgate craftgate = new Craftgate("api-key", "secret-key", "https://sandbox-api.craftgate.io", 10000, 15000);

Or

MyHTTPClient httpInstance = new MyHttpClient(); // implements an interface or extend Base class.
Craftgate craftgate = new Craftgate("api-key", "secret-key", "https://sandbox-api.craftgate.io", http);

Why we need this feature:

Default http Client usege in the SDK blocks API java project when SDK occurs timeout on network.. Timeout values depends many things. And SDK can't know these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions