Skip to content

Allow HTTPS parameter modification #5

@CJCrafter

Description

@CJCrafter

Give people access to the OkHttpsClient.Builder class so people can modify values, especially:

  • connectTimeout
  • readTimeout

This should be done using kotlin's constructor with default values set.

class ChatBot(private val apiKey: String, private val client: OkHttpClient = Builder()
    .connectTimeout(0, TimeUnit.SECONDS)
    .readTimeout(0, TimeUnit.SECONDS).build()) {
// ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions