hyperttp 0.4.1 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,164 +1,206 @@
1
- import type { HttpResponse, ResponseType, HttpClientOptions, RequestBodyData, RequestInterface } from "@hyperttp/types";
2
- import { RequestBuilder } from "../Utils/RequestBuilder.js";
3
- declare module "@hyperttp/core" {
4
- interface HyperCore {
5
- getStats?: () => Record<string, unknown>;
6
- clearCache?: () => void | Promise<void>;
7
- getAllMetrics?: () => Record<string, unknown>;
8
- getMetrics?: (key: string) => unknown;
9
- }
10
- }
11
- type StreamResponseBody = ReadableStream<Uint8Array> & {
12
- dump?: () => Promise<void>;
13
- };
1
+ import type { ResponseType, HttpClientOptions, RequestBodyData, RequestInterface, HyperPlugin, RequestMetrics } from "@hyperttp/types";
14
2
  /**
15
- * @ru Основной клиент для выполнения HTTP-запросов с поддержкой плагинов (сериализация, кэширование, очередь, rate limit, метрики, парсинг, перехватчики).
16
- * @en Main HTTP client supporting plugins (serialization, caching, queue, rate limiting, metrics, parsing, interceptors).
3
+ * @ru Высокоуровневый HTTP-клиент с автоматической регистрацией плагинов
4
+ * (сериализация, парсинг, очередь, rate limit, inflight, кэш, перехватчики, метрики).
5
+ * Делегирует выполнение запросов ядру HyperCore и извлекает тело ответа.
6
+ * @en High-level HTTP client with automatic plugin registration
7
+ * (serialization, parsing, queue, rate limit, inflight, cache, interceptors, metrics).
8
+ * Delegates request execution to the HyperCore core and extracts the response body.
17
9
  */
18
10
  export declare class HyperClient {
19
11
  private readonly _engine;
20
12
  private readonly _config;
21
13
  /**
22
- * @ru Создаёт экземпляр HyperClient с расширенными возможностями.
23
- * @en Creates a HyperClient instance with enhanced capabilities.
24
- * @param config - Client configuration (base URL, timeouts, network, logger, etc.).
14
+ * @ru Создаёт экземпляр HyperClient и регистрирует все стандартные плагины.
15
+ * @en Creates a HyperClient instance and registers all standard plugins.
16
+ * @param config - Client configuration options.
25
17
  */
26
18
  constructor(config?: HttpClientOptions);
27
- private wrapRequest;
28
- private extractBody;
29
- private static extractBodyFromResponse;
30
- private static formatHeadResponse;
31
- private static formatStreamResponse;
32
- /**
33
- * @ru Выполняет GET-запрос и возвращает распарсенный ответ (тело ответа).
34
- * @en Performs a GET request and returns the parsed response body.
35
- * @param req - Request URL or RequestInterface object.
36
- * @param responseType - Desired response type ('auto', 'json', 'text', 'stream', 'buffer').
19
+ /**
20
+ * @ru Регистрирует дополнительный плагин в клиенте.
21
+ * @en Registers an additional plugin in the client.
22
+ * @param plugin - Plugin instance to register.
23
+ * @returns The current instance for chaining.
24
+ */
25
+ use(plugin: HyperPlugin): this;
26
+ /**
27
+ * @ru Возвращает имя класса активного транспорта.
28
+ * @en Returns the class name of the active transport.
29
+ * @returns Promise resolving to the transport class name.
30
+ */
31
+ getTransportName(): Promise<string>;
32
+ /**
33
+ * @ru Строит RequestInterface, правильно извлекая данные из геттеров старого класса Request.
34
+ * @en Builds RequestInterface, correctly extracting data from getters of the old Request class.
35
+ * @param req - Request URL or configuration object.
36
+ * @param responseType - Response parsing strategy.
37
+ * @param body - Optional request body.
37
38
  * @param signal - Optional abort signal.
38
- * @returns Promise with the response body (type depends on responseType).
39
+ * @returns Normalized RequestInterface ready for dispatching.
40
+ */
41
+ private _buildRequest;
42
+ /**
43
+ * @ru Выполняет HTTP-запрос через ядро и возвращает распарсенное тело ответа.
44
+ * Плагин withParser автоматически парсит тело на основе meta.responseType.
45
+ * @en Executes an HTTP request through the core and returns the parsed response body.
46
+ * The withParser plugin automatically parses the body based on meta.responseType.
47
+ * @template T - Expected response body type.
48
+ * @param method - HTTP method (GET, POST, etc.).
49
+ * @param req - Request URL or configuration object.
50
+ * @param responseType - Response parsing strategy.
51
+ * @param body - Optional request body.
52
+ * @param signal - Optional abort signal.
53
+ * @returns Promise resolving to the parsed response body.
54
+ */
55
+ private _execute;
56
+ /**
57
+ * @ru Выполняет GET-запрос и возвращает распарсенный ответ.
58
+ * @en Performs a GET request and returns the parsed response.
59
+ * @template T - Expected response body type.
60
+ * @param req - Request URL or configuration object.
61
+ * @param responseType - Response parsing strategy ('auto', 'json', 'text', 'stream', 'buffer', 'blob', 'xml', 'html').
62
+ * @param signal - Optional abort signal.
63
+ * @returns Promise resolving to the parsed response body.
39
64
  */
40
- get<T>(req: RequestInterface | string, responseType?: ResponseType, signal?: AbortSignal): Promise<T>;
65
+ get<T = unknown>(req: RequestInterface | string, responseType?: ResponseType, signal?: AbortSignal): Promise<T>;
41
66
  /**
42
- * @ru Выполняет POST-запрос и возвращает распарсенный ответ (тело ответа).
43
- * @en Performs a POST request and returns the parsed response body.
44
- * @param req - Request URL or RequestInterface object.
45
- * @param responseType - Desired response type ('auto', 'json', 'text', 'stream', 'buffer').
46
- * @param body - Request body data (overrides body from req).
67
+ * @ru Выполняет POST-запрос и возвращает распарсенный ответ.
68
+ * @en Performs a POST request and returns the parsed response.
69
+ * @template T - Expected response body type.
70
+ * @param req - Request URL or configuration object.
71
+ * @param responseType - Response parsing strategy.
72
+ * @param body - Request body data.
47
73
  * @param signal - Optional abort signal.
48
- * @returns Promise with the response body.
74
+ * @returns Promise resolving to the parsed response body.
49
75
  */
50
76
  post<T = unknown>(req: RequestInterface | string, responseType?: ResponseType, body?: RequestBodyData, signal?: AbortSignal): Promise<T>;
51
77
  /**
52
- * @ru Выполняет PUT-запрос и возвращает распарсенный ответ (тело ответа).
53
- * @en Performs a PUT request and returns the parsed response body.
54
- * @param req - Request URL or RequestInterface object.
55
- * @param responseType - Desired response type ('auto', 'json', 'text', 'stream', 'buffer').
56
- * @param body - Request body data (overrides body from req).
78
+ * @ru Выполняет PUT-запрос и возвращает распарсенный ответ.
79
+ * @en Performs a PUT request and returns the parsed response.
80
+ * @template T - Expected response body type.
81
+ * @param req - Request URL or configuration object.
82
+ * @param responseType - Response parsing strategy.
83
+ * @param body - Request body data.
57
84
  * @param signal - Optional abort signal.
58
- * @returns Promise with the response body.
85
+ * @returns Promise resolving to the parsed response body.
59
86
  */
60
87
  put<T = unknown>(req: RequestInterface | string, responseType?: ResponseType, body?: RequestBodyData, signal?: AbortSignal): Promise<T>;
61
88
  /**
62
- * @ru Выполняет PATCH-запрос и возвращает распарсенный ответ (тело ответа).
63
- * @en Performs a PATCH request and returns the parsed response body.
64
- * @param req - Request URL or RequestInterface object.
65
- * @param responseType - Desired response type ('auto', 'json', 'text', 'stream', 'buffer').
66
- * @param body - Request body data (overrides body from req).
89
+ * @ru Выполняет PATCH-запрос и возвращает распарсенный ответ.
90
+ * @en Performs a PATCH request and returns the parsed response.
91
+ * @template T - Expected response body type.
92
+ * @param req - Request URL or configuration object.
93
+ * @param responseType - Response parsing strategy.
94
+ * @param body - Request body data.
67
95
  * @param signal - Optional abort signal.
68
- * @returns Promise with the response body.
96
+ * @returns Promise resolving to the parsed response body.
69
97
  */
70
98
  patch<T = unknown>(req: RequestInterface | string, responseType?: ResponseType, body?: RequestBodyData, signal?: AbortSignal): Promise<T>;
71
99
  /**
72
- * @ru Выполняет OPTIONS-запрос и возвращает распарсенный ответ (тело ответа).
73
- * @en Performs an OPTIONS request and returns the parsed response body.
74
- * @param req - Request URL or RequestInterface object.
75
- * @param responseType - Desired response type ('auto', 'json', 'text', 'stream', 'buffer').
76
- * @param body - Request body data (overrides body from req).
100
+ * @ru Выполняет DELETE-запрос и возвращает распарсенный ответ.
101
+ * @en Performs a DELETE request and returns the parsed response.
102
+ * @template T - Expected response body type.
103
+ * @param req - Request URL or configuration object.
104
+ * @param responseType - Response parsing strategy.
77
105
  * @param signal - Optional abort signal.
78
- * @returns Promise with the response body.
106
+ * @returns Promise resolving to the parsed response body.
79
107
  */
80
- options<T = unknown>(req: RequestInterface | string, responseType?: ResponseType, body?: RequestBodyData, signal?: AbortSignal): Promise<T>;
108
+ delete<T = unknown>(req: RequestInterface | string, responseType?: ResponseType, signal?: AbortSignal): Promise<T>;
81
109
  /**
82
- * @ru Выполняет DELETE-запрос и возвращает распарсенный ответ (тело ответа).
83
- * @en Performs a DELETE request and returns the parsed response body.
84
- * @param req - Request URL or RequestInterface object.
85
- * @param responseType - Desired response type ('auto', 'json', 'text', 'stream', 'buffer').
110
+ * @ru Выполняет OPTIONS-запрос и возвращает распарсенный ответ.
111
+ * @en Performs an OPTIONS request and returns the parsed response.
112
+ * @template T - Expected response body type.
113
+ * @param req - Request URL or configuration object.
114
+ * @param responseType - Response parsing strategy.
115
+ * @param body - Optional request body data.
86
116
  * @param signal - Optional abort signal.
87
- * @returns Promise with the response body.
117
+ * @returns Promise resolving to the parsed response body.
88
118
  */
89
- delete<T = unknown>(req: RequestInterface | string, responseType?: ResponseType, signal?: AbortSignal): Promise<T>;
119
+ options<T = unknown>(req: RequestInterface | string, responseType?: ResponseType, body?: RequestBodyData, signal?: AbortSignal): Promise<T>;
90
120
  /**
91
121
  * @ru Выполняет HEAD-запрос и возвращает статус и заголовки (без тела).
92
122
  * @en Performs a HEAD request and returns status and headers (no body).
93
- * @param req - Request URL or RequestInterface object.
94
- * @param responseType - Desired response type (ignored for HEAD, but kept for consistency).
123
+ * @param req - Request URL or configuration object.
95
124
  * @param signal - Optional abort signal.
96
- * @returns Promise with status and headers.
125
+ * @returns Promise resolving to an object with status and headers.
97
126
  */
98
- head(req: RequestInterface | string, responseType?: ResponseType, signal?: AbortSignal): Promise<{
127
+ head(req: RequestInterface | string, signal?: AbortSignal): Promise<{
99
128
  status: number;
100
129
  headers: Record<string, string | string[]>;
101
130
  }>;
102
131
  /**
103
- * @ru Выполняет GET-запрос и возвращает ответ в виде потока (StreamResponse). Тело ответа — ReadableStream.
104
- * @en Performs a GET request and returns the response as a stream (StreamResponse). Response body is a ReadableStream.
105
- * @param req - Request URL or RequestInterface object.
132
+ * @ru Выполняет потоковый GET-запрос. Тело ответа возвращается как ReadableStream.
133
+ * @en Performs a streaming GET request. Response body is returned as a ReadableStream.
134
+ * @param req - Request URL or configuration object.
106
135
  * @param signal - Optional abort signal.
107
- * @returns Promise with HTTP response containing a readable stream body.
108
- */
109
- stream(req: RequestInterface | string, signal?: AbortSignal): Promise<HttpResponse<StreamResponseBody>>;
110
- /**
111
- * @ru Создаёт построитель запроса (RequestBuilder) для удобной цепочной настройки GET-запроса.
112
- * @en Creates a RequestBuilder for convenient chained GET request configuration.
113
- * @param url - Base URL for the request.
114
- * @returns RequestBuilder instance.
136
+ * @returns Promise resolving to the stream response.
115
137
  */
116
- request(url: string): RequestBuilder;
138
+ stream(req: RequestInterface | string, signal?: AbortSignal): Promise<import("@hyperttp/types").StreamResponse<unknown>>;
117
139
  /**
118
- * @ru Создаёт новый экземпляр HyperClient с расширенной конфигурацией (поверх текущей).
119
- * @en Creates a new HyperClient instance with extended configuration (on top of current).
120
- * @param options - Partial configuration to merge.
121
- * @returns New HyperClient instance.
140
+ * @ru Создаёт новый экземпляр клиента, объединяя текущую конфигурацию с переданными опциями.
141
+ * @en Creates a new client instance by merging the current configuration with provided options.
142
+ * @param options - Partial configuration options to extend.
143
+ * @returns A new HyperClient instance.
122
144
  */
123
145
  extend(options: Partial<HttpClientOptions>): HyperClient;
124
146
  /**
125
- * @ru Алиас для extend(). Создаёт новый экземпляр HyperClient.
126
- * @en Alias for extend(). Creates a new HyperClient instance.
127
- * @param options - Configuration options.
128
- * @returns New HyperClient instance.
147
+ * @ru Алиас для extend(). Создаёт новый экземпляр клиента.
148
+ * @en Alias for extend(). Creates a new client instance.
149
+ * @param options - Partial configuration options.
150
+ * @returns A new HyperClient instance.
129
151
  */
130
152
  create(options: Partial<HttpClientOptions>): HyperClient;
131
153
  /**
132
- * @ru Уничтожает клиент, закрывая соединения и очищая ресурсы (транспорт, агенты).
133
- * @en Destroys the client, closing connections and cleaning up resources (transport, agents).
134
- * @returns Promise that resolves after destruction.
154
+ * @ru Завершает работу клиента и освобождает ресурсы (соединения, пулы, плагины).
155
+ * @en Shuts down the client and releases resources (connections, pools, plugins).
156
+ * @returns Promise that resolves when shutdown is complete.
135
157
  */
136
158
  destroy(): Promise<void>;
137
159
  /**
138
- * @ru Возвращает статистику работы клиента (если включены метрики).
139
- * @en Returns client statistics (if metrics are enabled).
140
- * @returns Statistics object or undefined.
160
+ * @ru Возвращает статистику работы клиента (активные соединения, очередь, кэш).
161
+ * Требует наличия плагина метрик или очереди.
162
+ * @en Returns client statistics (active connections, queue, cache).
163
+ * Requires metrics or queue plugin to be registered.
164
+ * @returns Statistics object, or undefined if no plugin provides it.
165
+ */
166
+ getStats(): unknown;
167
+ /**
168
+ * @ru Возвращает все агрегированные метрики (latency, RPS, cache hits и т.д.).
169
+ * Требует наличия плагина `withMetrics`.
170
+ * @en Returns all aggregated metrics (latency, RPS, cache hits, etc.).
171
+ * Requires the `withMetrics` plugin to be registered.
172
+ * @returns Array of metrics, or undefined if the plugin is not registered.
141
173
  */
142
- getStats(): Record<string, unknown> | undefined;
174
+ getAllMetrics(): RequestMetrics[] | undefined;
143
175
  /**
144
- * @ru Очищает кэш ответов (если используется плагин кэширования).
145
- * @en Clears the response cache (if the caching plugin is used).
176
+ * @ru Возвращает конкретную метрику по ключу.
177
+ * Требует наличия плагина `withMetrics`.
178
+ * @en Returns a specific metric by key.
179
+ * Requires the `withMetrics` plugin to be registered.
180
+ * @param key - Metric key (e.g., 'rps', 'avgLatency', 'cacheHits').
181
+ * @returns Metric value, or undefined if not found.
182
+ */
183
+ getMetrics(key: string): RequestMetrics | RequestMetrics[] | undefined;
184
+ /**
185
+ * @ru Очищает кэш ответов. Требует наличия плагина `withCache`.
186
+ * @en Clears the response cache. Requires the `withCache` plugin.
146
187
  * @returns Void or Promise if async clearing is required.
147
188
  */
148
189
  clearCache(): void | Promise<void> | undefined;
149
190
  /**
150
- * @ru Возвращает все метрики (если включен плагин метрик).
151
- * @en Returns all metrics (if the metrics plugin is enabled).
152
- * @returns Metrics object or undefined.
191
+ * @ru Возвращает агрегированную сводку метрик (success rate, avg duration, bottlenecks).
192
+ * Требует наличия плагина `withMetrics`.
193
+ * @en Returns aggregated metrics summary (success rate, avg duration, bottlenecks).
194
+ * Requires the `withMetrics` plugin to be registered.
195
+ * @returns Summary object, or null if no metrics collected.
153
196
  */
154
- getAllMetrics(): Record<string, unknown> | undefined;
197
+ getMetricsSummary(): unknown;
155
198
  /**
156
- * @ru Возвращает конкретную метрику по ключу.
157
- * @en Returns a specific metric by key.
158
- * @param key - Metric key.
159
- * @returns Metric value or undefined.
199
+ * @ru Сбрасывает все накопленные метрики.
200
+ * Требует наличия плагина `withMetrics`.
201
+ * @en Resets all accumulated metrics.
202
+ * Requires the `withMetrics` plugin to be registered.
160
203
  */
161
- getMetrics(key: string): unknown;
204
+ resetMetrics(): void;
162
205
  }
163
- export {};
164
206
  //# sourceMappingURL=HyperClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HyperClient.d.ts","sourceRoot":"","sources":["../../../src/Hyperttp/Client/HyperClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAY5D,OAAO,QAAQ,gBAAgB,CAAC;IAC9B,UAAU,SAAS;QACjB,QAAQ,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACzC,UAAU,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACxC,aAAa,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9C,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;KACvC;CACF;AAED,KAAK,kBAAkB,GAAG,cAAc,CAAC,UAAU,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B,CAAC;AAwBF;;;GAGG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAY;IACp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