Skip to content

Commit f1a084b

Browse files
authored
fix: typo and minor wording modifications (#246)
1 parent 6c64f69 commit f1a084b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/java/okhttpclient.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ tags:
88

99
# Introducing Configurable HTTP Client
1010

11-
## What is a Configurable HTTP Client?
12-
1311
The RAPID SDK is built on top of an OkHttpClient that is not open for you to configure and tune. Lately, we've come to
1412
realize your need to tune and optimize the HTTP client to your needs. So in order to give developers using the RAPID SDK
1513
more control over the underlying HTTP client of the SDK, we're introducing a new builder which you can use to pass your
1614
own HTTP Client for the SDK to use internally.
1715

18-
Using this builder, you can build an HTTP client with you own configurations and pass it to the SDK, or even pass a
16+
Using this builder, you can build an HTTP client with your own configurations and pass it to the SDK, or even pass a
1917
client you're already using in your application.
2018

2119
{% messageCard type="info" %}
@@ -25,13 +23,17 @@ Note
2523
This feature is available in the `rapid-sdk` v5.2.0 and later.
2624
{% /messageCard %}
2725

28-
## Why use a Configurable HTTP Client?
26+
## Choosing between configuring an HTTP Client and using the default client
2927

30-
A configurable HTTP client will benefit you in the following ways:
28+
Using the default client provided by the SDK is the easiest way to get started with the SDK. However, configuring your
29+
own HTTP client will benefit you in the following ways:
3130

3231
- **Optimization:** Fine-tune the client for better performance, such as connection pooling, timeouts, and retries.
3332
- **Integration:** Use an existing HTTP client that is already configured and tested within your application.
3433

34+
So, if you're looking to optimize the SDK for better performance or integrate it with an existing HTTP client, configuring
35+
your own HTTP client is the way to go.
36+
3537
## How to configure your HTTP client?
3638

3739
To configure your HTTP client, you need to create an instance of `OkHttpClient` and pass it to the `RapidClient` builder.

0 commit comments

Comments
 (0)