Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/networknt/pre-commit-hook-keyword
rev: f17c4de14fc24420f6768c19cad06ba03af06d86
hooks:
- id: keywordscan
args: ["--keywords=c3VubGlmZQ==,Y2liYw==,c3VuIGxpZmU="]
types: ["text"]
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ An HTTP client based on JDK 11 http-client to invoke APIs with client-side cross

The purpose of the client module is trying to help the user to handler SSL cert load and JWT token process.

### Synchronous call
### Synchronous call

```text
HttpClientRequest httpClientRequest = new HttpClientRequest();
Expand Down Expand Up @@ -56,7 +56,7 @@ The purpose of the client module is trying to help the user to handler SSL cert

### Connectionpool

JDK 11 http connection build connection pool internal and it will select the connection from pool base on certain logic.
JDK 11 http connection build connection pool internal and it will select the connection from pool base on certain logic.


### Connection with proxy.
Expand Down Expand Up @@ -115,7 +115,7 @@ Java HttpClient by default will load default JDK cacerts for https request, if t
```
# trust store contains certifictes that server needs. Enable if tls is used.
loadTrustStore: false
```
```

If we need load self-signed trust from client truststore, set the config value to true:

Expand All @@ -124,4 +124,4 @@ If we need load self-signed trust from client truststore, set the config value t
loadTrustStore: true
```

System will load the client truststore and default certs together for SSL context
System will load the client truststore and default certs together for SSL context
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* The configuration is coming from the sign/key section in the client.yml file. This request is used
* to get the key for sign verification. The proxy configuration is defined in the sign section as it
* is not possible the same service using two different proxy servers.
* is not possible the same service using two different proxy servers.
*
* @author Steve Hu
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/networknt/http/client/ssl/TLSConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/**
* This class holds configuration values related to server identify check.
*
*
* @author Daniel Zhao
*
*/
Expand All @@ -34,5 +34,5 @@ private TLSConfig(boolean checkServerIdentify) {
public boolean getCheckServerIdentity() {
return checkServerIdentify;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,3 @@ public void copyUnquotedContent(
}

}