Skip to content

Commit

Permalink
fix: add export type (#540)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced `ClientOptions` for enhanced configuration of HTTP clients.
- Added `CheckAddressFunction` for improved address validation
capabilities.
  
- **Compatibility**
- Existing exports remain unchanged, ensuring compatibility with
previous versions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: shixia.ly <shixia.ly@antgroup.com>
  • Loading branch information
akitaSummer and shixia.ly authored Sep 19, 2024
1 parent 1a67bf6 commit 1765806
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@ export {
// HttpClient2 is keep compatible with urllib@2 HttpClient2
export {
HttpClient, HttpClient as HttpClient2, HEADER_USER_AGENT as USER_AGENT,
RequestDiagnosticsMessage, ResponseDiagnosticsMessage,
RequestDiagnosticsMessage, ResponseDiagnosticsMessage, ClientOptions,
} from './HttpClient.js';
// RequestOptions2 is keep compatible with urllib@2 RequestOptions2
export {
RequestOptions, RequestOptions as RequestOptions2, RequestURL, HttpMethod,
FixJSONCtlCharsHandler, FixJSONCtlChars,
} from './Request.js';

export { CheckAddressFunction } from './HttpAgent.js';

export {
SocketInfo, Timing, RawResponseWithMeta, HttpClientResponse,
} from './Response.js';
Expand Down

0 comments on commit 1765806

Please sign in to comment.