You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-41Lines changed: 14 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
3
3
This Go module offers a sophisticated HTTP client designed for seamless API interactions, with a strong emphasis on concurrency management, robust error handling, extensive logging, and adaptive rate limiting. It's particularly suitable for applications requiring high-throughput API interactions with complex authentication and operational resilience.
4
4
5
-
This client leverages API-specific SDKs to provide a comprehensive and consistent interface for interacting with various APIs, including Microsoft Graph, Jamf Pro, and others. It is designed to be easily extensible to support additional APIs and to be highly configurable to meet specific API requirements. It achieves this through using a modular design, with a core HTTP client and API-specific handlers that encapsulate the unique requirements of each API supported.
5
+
This client is designed to be used with targetted SDK's and terraform providers only. As such the http client cannot be used without a supporting SDK and associated api integration plugin [go-api-http-client-integrations](https://github.com/deploymenttheory/go-api-http-client-integrations).
6
6
7
-
This HTTP clientis intended to be used with targetted SDK's and terraform providers only. As such the http client cannot be used without a supporting SDK.
7
+
The plugin is required to provide the necessary API-specific handlers and configuration to the HTTP client. The plugin approach is designed to provide a consistent interface for interacting with various APIs, including Microsoft Graph, Jamf Pro, and others. It is easily extensible to support additional APIs and highly configurable to meet specific API requirements. It achieves this through using a modular design, with a core HTTP client and API-specific handlers that encapsulate the unique requirements of each API supported. Conseqently the client provides core common HTTP client functionality, such as rate limiting, logging, concurrency and responses while the plugin provides the API-specific logic, such as encoding and decoding requests, managing authentication endpoints, and handling API-specific logic.
8
8
9
-
## Features
9
+
## HTTP Client Features
10
10
11
11
-**Comprehensive Authentication Support**: Robust support for various authentication schemes, including OAuth and Bearer Token, with built-in token management and validation.
12
12
-**Advanced Concurrency Management**: An intelligent Concurrency Manager dynamically adjusts concurrent request limits to optimize throughput and adhere to API rate limits.
@@ -20,42 +20,19 @@ This HTTP client is intended to be used with targetted SDK's and terraform provi
20
20
-**API Handler Interface**: Provides a flexible and extensible way to interact with different APIs, including encoding and decoding requests and responses, managing authentication endpoints, and handling API-specific logic.
21
21
-**Configuration via JSON or Environment Variables**: The Go API HTTP Client supports configuration via JSON files or environment variables, providing flexibility in defining authentication credentials, API endpoints, logging settings, and other parameters.
22
22
23
-
TBC
24
-
25
23
## Getting Started
26
-
'
27
-
{
28
-
"Integration": {
29
-
"FQDN": "https://api.example.com",
30
-
"AuthMethodDescriptor": "Bearer"
31
-
// other necessary fields for integration
32
-
},
33
-
"HideSensitiveData": true,
34
-
"CustomCookies": [
35
-
{
36
-
"Name": "sessionid",
37
-
"Value": "abc123",
38
-
"Path": "/",
39
-
"Domain": "example.com",
40
-
"Expires": "2025-01-02T15:04:05Z",
41
-
"MaxAge": 86400,
42
-
"Secure": true,
43
-
"HttpOnly": true,
44
-
"SameSite": 1
45
-
}
46
-
],
47
-
"MaxRetryAttempts": 5,
48
-
"MaxConcurrentRequests": 10,
49
-
"EnableDynamicRateLimiting": true,
50
-
"CustomTimeout": "10s",
51
-
"TokenRefreshBufferPeriod": "2m",
52
-
"TotalRetryDuration": "10m",
53
-
"FollowRedirects": true,
54
-
"MaxRedirects": 3,
55
-
"ConcurrencyManagementEnabled": true
56
-
}
57
-
'
58
24
25
+
This SDK requires an existing Go environment to build and run. If you do not have Go installed, you can download and install it from the [official Go website](https://golang.org/doc/install).
26
+
27
+
28
+
29
+
## SDK Support
30
+
31
+
This http client is used in conjuction with the following SDKs:
0 commit comments