@effect/platform 0.18.3 → 0.18.5

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.
Files changed (82) hide show
  1. package/Command/dist/effect-platform-Command.esm.js +12 -200
  2. package/CommandExecutor/dist/effect-platform-CommandExecutor.esm.js +9 -71
  3. package/Effectify/dist/effect-platform-Effectify.esm.js +2 -23
  4. package/Error/dist/effect-platform-Error.esm.js +2 -54
  5. package/FileSystem/dist/effect-platform-FileSystem.esm.js +10 -177
  6. package/Http/Body/dist/effect-platform-Http-Body.esm.js +13 -0
  7. package/Http/Client/dist/effect-platform-Http-Client.esm.js +28 -0
  8. package/Http/ClientError/dist/effect-platform-Http-ClientError.esm.js +3 -0
  9. package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.esm.js +20 -0
  10. package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.esm.js +23 -0
  11. package/Http/{Http/Etag → Etag}/dist/effect-platform-Http-Etag.esm.js +17 -1
  12. package/Http/FormData/dist/effect-platform-Http-FormData.esm.js +17 -0
  13. package/Http/Headers/dist/effect-platform-Http-Headers.esm.js +4 -0
  14. package/Http/{Http/IncomingMessage → IncomingMessage}/dist/effect-platform-Http-IncomingMessage.esm.js +6 -1
  15. package/Http/Middleware/dist/effect-platform-Http-Middleware.esm.js +30 -0
  16. package/{internal/http/platform.esm.js → Http/Platform/dist/effect-platform-Http-Platform.esm.js} +44 -7
  17. package/Http/Router/dist/effect-platform-Http-Router.esm.js +25 -0
  18. package/Http/{Http/Server → Server}/dist/effect-platform-Http-Server.esm.js +18 -1
  19. package/Http/ServerError/dist/effect-platform-Http-ServerError.esm.js +2 -0
  20. package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.esm.js +21 -0
  21. package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.esm.js +21 -0
  22. package/Http/UrlParams/dist/effect-platform-Http-UrlParams.esm.js +4 -0
  23. package/HttpClient/dist/effect-platform-HttpClient.esm.js +32 -18
  24. package/HttpServer/dist/effect-platform-HttpServer.esm.js +36 -24
  25. package/KeyValueStore/dist/effect-platform-KeyValueStore.esm.js +15 -78
  26. package/Path/dist/effect-platform-Path.esm.js +8 -33
  27. package/Runtime/dist/effect-platform-Runtime.esm.js +3 -26
  28. package/dist/App-687366d8.esm.js +5 -0
  29. package/{Http/Http/Body/dist/effect-platform-Http-Body.esm.js → dist/Body-ec1353f9.esm.js} +21 -2
  30. package/dist/Client-52ebd74a.esm.js +346 -0
  31. package/{Http/Http/ClientError/dist/effect-platform-Http-ClientError.esm.js → dist/ClientError-98b5da8c.esm.js} +9 -2
  32. package/{Http/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.esm.js → dist/ClientRequest-fc429335.esm.js} +42 -2
  33. package/dist/ClientResponse-9f276554.esm.js +46 -0
  34. package/dist/Command-d8ab0c8d.esm.js +403 -0
  35. package/dist/CommandExecutor-5807b66b.esm.js +80 -0
  36. package/dist/Effectify-e5a9d266.esm.js +43 -0
  37. package/dist/Error-3099667c.esm.js +75 -0
  38. package/dist/FileSystem-7e31dccd.esm.js +271 -0
  39. package/dist/FormData-f54de878.esm.js +270 -0
  40. package/{Http/Http/Headers/dist/effect-platform-Http-Headers.esm.js → dist/Headers-58b56a08.esm.js} +12 -1
  41. package/dist/HttpClient-27710864.esm.js +24 -0
  42. package/dist/HttpServer-e1d88a1c.esm.js +30 -0
  43. package/{internal/keyValueStore.esm.js → dist/KeyValueStore-2f9a70bf.esm.js} +102 -15
  44. package/dist/Middleware-27760041.esm.js +105 -0
  45. package/{internal/path.esm.js → dist/Path-46f84ba7.esm.js} +40 -4
  46. package/dist/Router-bf32317a.esm.js +454 -0
  47. package/dist/Runtime-7265fb98.esm.js +31 -0
  48. package/dist/ServerError-04ad5b57.esm.js +99 -0
  49. package/dist/ServerRequest-03161edc.esm.js +125 -0
  50. package/dist/ServerResponse-675e9456.esm.js +249 -0
  51. package/{Http/Http/UrlParams/dist/effect-platform-Http-UrlParams.esm.js → dist/UrlParams-1286c728.esm.js} +14 -1
  52. package/{internal/http/body.esm.js → dist/body-20d78ec1.esm.js} +2 -2
  53. package/{internal/http/clientError.esm.js → dist/clientError-c4e1466c.esm.js} +1 -1
  54. package/{internal/http/clientRequest.esm.js → dist/clientRequest-1e9e0b0d.esm.js} +4 -4
  55. package/{internal/http/clientResponse.esm.js → dist/clientResponse-ce25dbf3.esm.js} +5 -5
  56. package/{internal/commandExecutor.esm.js → dist/commandExecutor-d6457489.esm.js} +1 -1
  57. package/dist/effect-platform.esm.js +58 -20
  58. package/package.json +1 -2
  59. package/Http/Http/Client/dist/effect-platform-Http-Client.esm.js +0 -164
  60. package/Http/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.esm.js +0 -36
  61. package/Http/Http/FormData/dist/effect-platform-Http-FormData.esm.js +0 -155
  62. package/Http/Http/Middleware/dist/effect-platform-Http-Middleware.esm.js +0 -52
  63. package/Http/Http/Platform/dist/effect-platform-Http-Platform.esm.js +0 -34
  64. package/Http/Http/Router/dist/effect-platform-Http-Router.esm.js +0 -224
  65. package/Http/Http/ServerError/dist/effect-platform-Http-ServerError.esm.js +0 -70
  66. package/Http/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.esm.js +0 -66
  67. package/Http/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.esm.js +0 -126
  68. package/internal/command.esm.js +0 -185
  69. package/internal/effectify.esm.js +0 -18
  70. package/internal/error.esm.js +0 -17
  71. package/internal/fileSystem.esm.js +0 -82
  72. package/internal/http/client.esm.js +0 -157
  73. package/internal/http/etag.esm.js +0 -19
  74. package/internal/http/formData.esm.js +0 -95
  75. package/internal/http/middleware.esm.js +0 -46
  76. package/internal/http/router.esm.js +0 -199
  77. package/internal/http/server.esm.js +0 -20
  78. package/internal/http/serverError.esm.js +0 -23
  79. package/internal/http/serverRequest.esm.js +0 -50
  80. package/internal/http/serverResponse.esm.js +0 -105
  81. /package/Http/{Http/App → App}/dist/effect-platform-Http-App.esm.js +0 -0
  82. /package/Http/{Http/Method → Method}/dist/effect-platform-Http-Method.esm.js +0 -0
@@ -0,0 +1,346 @@
1
+ import * as Schema from '@effect/schema/Schema';
2
+ import * as Context from 'effect/Context';
3
+ import * as Effect from 'effect/Effect';
4
+ import { dual, pipe } from 'effect/Function';
5
+ import * as Layer from 'effect/Layer';
6
+ import * as Option from 'effect/Option';
7
+ import { pipeArguments } from 'effect/Pipeable';
8
+ import * as Stream from 'effect/Stream';
9
+ import { schemaExternalSpan } from '../Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.esm.js';
10
+ import { hasBody } from '../Http/Method/dist/effect-platform-Http-Method.esm.js';
11
+ import { m as makeUrl } from './UrlParams-1286c728.esm.js';
12
+ import { u as uint8Array } from './body-20d78ec1.esm.js';
13
+ import { r as requestError, a as responseError } from './clientError-c4e1466c.esm.js';
14
+ import { s as setHeader, a as setBody } from './clientRequest-1e9e0b0d.esm.js';
15
+ import { f as fromWeb } from './clientResponse-ce25dbf3.esm.js';
16
+
17
+ /** @internal */
18
+ const TypeId$1 = /*#__PURE__*/Symbol.for("@effect/platform/Http/Client");
19
+
20
+ /** @internal */
21
+ const tag = /*#__PURE__*/Context.Tag(TypeId$1);
22
+ const clientProto = {
23
+ [TypeId$1]: TypeId$1,
24
+ pipe() {
25
+ return pipeArguments(this, arguments);
26
+ }
27
+ };
28
+
29
+ /** @internal */
30
+ const make$1 = f => {
31
+ Object.setPrototypeOf(f, clientProto);
32
+ return f;
33
+ };
34
+
35
+ /** @internal */
36
+ const fetch$1 = (options = {}) => make$1(request => Effect.flatMap(makeUrl(request.url, request.urlParams, _ => requestError({
37
+ request,
38
+ reason: "InvalidUrl",
39
+ error: _
40
+ })), url => Effect.suspend(() => {
41
+ const headers = new Headers(request.headers);
42
+ const send = body => Effect.map(Effect.tryPromise({
43
+ try: signal => globalThis.fetch(url, {
44
+ ...options,
45
+ method: request.method,
46
+ headers,
47
+ body,
48
+ signal
49
+ }),
50
+ catch: _ => requestError({
51
+ request,
52
+ reason: "Transport",
53
+ error: _
54
+ })
55
+ }), _ => fromWeb(request, _));
56
+ if (hasBody(request.method)) {
57
+ return send(convertBody(request.body));
58
+ }
59
+ return send(undefined);
60
+ })));
61
+ const convertBody = body => {
62
+ switch (body._tag) {
63
+ case "Empty":
64
+ return undefined;
65
+ case "Raw":
66
+ return body.body;
67
+ case "Uint8Array":
68
+ return body.body;
69
+ case "FormData":
70
+ return body.formData;
71
+ case "Stream":
72
+ return Stream.toReadableStream(body.stream);
73
+ }
74
+ };
75
+
76
+ /** @internal */
77
+ const fetchOk$1 = (options = {}) => filterStatusOk$1(fetch$1(options));
78
+
79
+ /** @internal */
80
+ const layer$1 = /*#__PURE__*/Layer.succeed(tag, /*#__PURE__*/fetch$1());
81
+
82
+ /** @internal */
83
+ const transform$1 = /*#__PURE__*/dual(2, (self, f) => make$1(f(self)));
84
+
85
+ /** @internal */
86
+ const transformResponse$1 = /*#__PURE__*/dual(2, (self, f) => make$1(request => f(self(request))));
87
+
88
+ /** @internal */
89
+ const catchTag$1 = /*#__PURE__*/dual(3, (self, tag, f) => make$1(request => Effect.catchTag(self(request), tag, f)));
90
+
91
+ /** @internal */
92
+ const catchTags$1 = /*#__PURE__*/dual(2, (self, cases) => make$1(request => Effect.catchTags(self(request), cases)));
93
+
94
+ /** @internal */
95
+ const catchAll$1 = /*#__PURE__*/dual(2, (self, f) => make$1(request => Effect.catchAll(self(request), f)));
96
+
97
+ /** @internal */
98
+ const filterOrElse$1 = /*#__PURE__*/dual(3, (self, f, orElse) => make$1(request => Effect.filterOrElse(self(request), f, orElse)));
99
+
100
+ /** @internal */
101
+ const filterOrFail$1 = /*#__PURE__*/dual(3, (self, f, orFailWith) => make$1(request => Effect.filterOrFail(self(request), f, orFailWith)));
102
+
103
+ /** @internal */
104
+ const filterStatus$1 = /*#__PURE__*/dual(2, (self, f) => make$1(request => Effect.filterOrFail(self(request), response => f(response.status), response => responseError({
105
+ request,
106
+ response,
107
+ reason: "StatusCode",
108
+ error: "non 2xx status code"
109
+ }))));
110
+
111
+ /** @internal */
112
+ const filterStatusOk$1 = /*#__PURE__*/filterStatus$1(status => status >= 200 && status < 300);
113
+
114
+ /** @internal */
115
+ const map$1 = /*#__PURE__*/dual(2, (self, f) => make$1(request => Effect.map(self(request), f)));
116
+
117
+ /** @internal */
118
+ const mapEffect$1 = /*#__PURE__*/dual(2, (self, f) => make$1(request => Effect.flatMap(self(request), f)));
119
+
120
+ /** @internal */
121
+ const mapRequest$1 = /*#__PURE__*/dual(2, (self, f) => make$1(request => self(f(request))));
122
+
123
+ /** @internal */
124
+ const mapRequestEffect$1 = /*#__PURE__*/dual(2, (self, f) => make$1(request => Effect.flatMap(f(request), self)));
125
+
126
+ /** @internal */
127
+ const withB3Propagation$1 = self => make$1(req => pipe(Effect.map(Effect.currentSpan, Option.match({
128
+ onNone: () => req,
129
+ onSome: span => {
130
+ const parentId = span.parent._tag === "Some" ? `-${span.parent.value.spanId}` : "";
131
+ return setHeader(req, "b3", `${span.traceId}-${span.spanId}-1${parentId}`);
132
+ }
133
+ })), Effect.flatMap(self), Effect.tap(res => Effect.ignore(Effect.flatMap(schemaExternalSpan(res), Effect.withParentSpanScoped)))));
134
+
135
+ /** @internal */
136
+ const retry$1 = /*#__PURE__*/dual(2, (self, policy) => make$1(request => Effect.retry(self(request), policy)));
137
+
138
+ /** @internal */
139
+ const schemaFunction$1 = /*#__PURE__*/dual(2, (self, schema) => {
140
+ const encode = Schema.encode(schema);
141
+ return request => a => Effect.flatMap(Effect.tryMap(encode(a), {
142
+ try: body => new TextEncoder().encode(JSON.stringify(body)),
143
+ catch: error => requestError({
144
+ request,
145
+ reason: "Encode",
146
+ error
147
+ })
148
+ }), body => self(setBody(request, uint8Array(body, "application/json"))));
149
+ });
150
+
151
+ /** @internal */
152
+ const tap$1 = /*#__PURE__*/dual(2, (self, f) => make$1(request => Effect.tap(self(request), f)));
153
+
154
+ /** @internal */
155
+ const tapRequest$1 = /*#__PURE__*/dual(2, (self, f) => make$1(request => Effect.zipRight(f(request), self(request))));
156
+
157
+ /**
158
+ * @since 1.0.0
159
+ */
160
+ /**
161
+ * @since 1.0.0
162
+ * @category type ids
163
+ */
164
+ const TypeId = TypeId$1;
165
+
166
+ /**
167
+ * @since 1.0.0
168
+ * @category type ids
169
+ */
170
+
171
+ /**
172
+ * @since 1.0.0
173
+ * @category models
174
+ */
175
+
176
+ /**
177
+ * @since 1.0.0
178
+ */
179
+
180
+ /**
181
+ * @since 1.0.0
182
+ * @category tags
183
+ */
184
+ const Client = tag;
185
+
186
+ /**
187
+ * @since 1.0.0
188
+ * @category layers
189
+ */
190
+ const layer = layer$1;
191
+
192
+ /**
193
+ * @since 1.0.0
194
+ * @category constructors
195
+ */
196
+ const fetch = fetch$1;
197
+
198
+ /**
199
+ * @since 1.0.0
200
+ * @category constructors
201
+ */
202
+ const fetchOk = fetchOk$1;
203
+
204
+ /**
205
+ * @since 1.0.0
206
+ * @category error handling
207
+ */
208
+ const catchAll = catchAll$1;
209
+
210
+ /**
211
+ * @since 1.0.0
212
+ * @category error handling
213
+ */
214
+ const catchTag = catchTag$1;
215
+
216
+ /**
217
+ * @since 1.0.0
218
+ * @category error handling
219
+ */
220
+ const catchTags = catchTags$1;
221
+
222
+ /**
223
+ * @since 1.0.0
224
+ * @category filters
225
+ */
226
+ const filterOrElse = filterOrElse$1;
227
+
228
+ /**
229
+ * @since 1.0.0
230
+ * @category filters
231
+ */
232
+ const filterOrFail = filterOrFail$1;
233
+
234
+ /**
235
+ * @since 1.0.0
236
+ * @category filters
237
+ */
238
+ const filterStatus = filterStatus$1;
239
+
240
+ /**
241
+ * @since 1.0.0
242
+ * @category filters
243
+ */
244
+ const filterStatusOk = filterStatusOk$1;
245
+
246
+ /**
247
+ * @since 1.0.0
248
+ * @category constructors
249
+ */
250
+ const make = make$1;
251
+
252
+ /**
253
+ * @since 1.0.0
254
+ * @category mapping & sequencing
255
+ */
256
+ const transform = transform$1;
257
+
258
+ /**
259
+ * @since 1.0.0
260
+ * @category mapping & sequencing
261
+ */
262
+ const transformResponse = transformResponse$1;
263
+
264
+ /**
265
+ * @since 1.0.0
266
+ * @category mapping & sequencing
267
+ */
268
+ const map = map$1;
269
+
270
+ /**
271
+ * @since 1.0.0
272
+ * @category mapping & sequencing
273
+ */
274
+ const mapEffect = mapEffect$1;
275
+
276
+ /**
277
+ * @since 1.0.0
278
+ * @category mapping & sequencing
279
+ */
280
+ const mapRequest = mapRequest$1;
281
+
282
+ /**
283
+ * @since 1.0.0
284
+ * @category mapping & sequencing
285
+ */
286
+ const mapRequestEffect = mapRequestEffect$1;
287
+
288
+ /**
289
+ * @since 1.0.0
290
+ * @category error handling
291
+ */
292
+ const retry = retry$1;
293
+
294
+ /**
295
+ * @since 1.0.0
296
+ * @category schema
297
+ */
298
+ const schemaFunction = schemaFunction$1;
299
+
300
+ /**
301
+ * @since 1.0.0
302
+ * @category tracing
303
+ */
304
+ const withB3Propagation = withB3Propagation$1;
305
+
306
+ /**
307
+ * @since 1.0.0
308
+ * @category mapping & sequencing
309
+ */
310
+ const tap = tap$1;
311
+
312
+ /**
313
+ * @since 1.0.0
314
+ * @category mapping & sequencing
315
+ */
316
+ const tapRequest = tapRequest$1;
317
+
318
+ var Client$1 = /*#__PURE__*/Object.freeze({
319
+ __proto__: null,
320
+ TypeId: TypeId,
321
+ Client: Client,
322
+ layer: layer,
323
+ fetch: fetch,
324
+ fetchOk: fetchOk,
325
+ catchAll: catchAll,
326
+ catchTag: catchTag,
327
+ catchTags: catchTags,
328
+ filterOrElse: filterOrElse,
329
+ filterOrFail: filterOrFail,
330
+ filterStatus: filterStatus,
331
+ filterStatusOk: filterStatusOk,
332
+ make: make,
333
+ transform: transform,
334
+ transformResponse: transformResponse,
335
+ map: map,
336
+ mapEffect: mapEffect,
337
+ mapRequest: mapRequest,
338
+ mapRequestEffect: mapRequestEffect,
339
+ retry: retry,
340
+ schemaFunction: schemaFunction,
341
+ withB3Propagation: withB3Propagation,
342
+ tap: tap,
343
+ tapRequest: tapRequest
344
+ });
345
+
346
+ export { Client$1 as C, TypeId as T, Client as a, fetchOk as b, catchAll as c, catchTag as d, catchTags as e, fetch as f, filterOrElse as g, filterOrFail as h, filterStatus as i, filterStatusOk as j, transformResponse as k, layer as l, make as m, map as n, mapEffect as o, mapRequest as p, mapRequestEffect as q, retry as r, schemaFunction as s, transform as t, tap as u, tapRequest as v, withB3Propagation as w };
@@ -1,4 +1,4 @@
1
- import { TypeId as TypeId$1, requestError, responseError } from '../../../../internal/http/clientError.esm.js';
1
+ import { T as TypeId$1, r as requestError, a as responseError } from './clientError-c4e1466c.esm.js';
2
2
 
3
3
  /**
4
4
  * @since 1.0.0
@@ -45,4 +45,11 @@ const RequestError = requestError;
45
45
  */
46
46
  const ResponseError = responseError;
47
47
 
48
- export { RequestError, ResponseError, TypeId };
48
+ var ClientError = /*#__PURE__*/Object.freeze({
49
+ __proto__: null,
50
+ TypeId: TypeId,
51
+ RequestError: RequestError,
52
+ ResponseError: ResponseError
53
+ });
54
+
55
+ export { ClientError as C, RequestError as R, TypeId as T, ResponseError as a };
@@ -1,4 +1,4 @@
1
- import { make as make$1, get as get$1, post as post$1, patch as patch$1, put as put$1, del as del$1, head as head$1, options as options$1, modify as modify$1, setMethod as setMethod$1, setHeader as setHeader$1, setHeaders as setHeaders$1, basicAuth as basicAuth$1, bearerToken as bearerToken$1, accept as accept$1, acceptJson as acceptJson$1, setUrl as setUrl$1, prependUrl as prependUrl$1, appendUrl as appendUrl$1, updateUrl as updateUrl$1, setUrlParam as setUrlParam$1, setUrlParams as setUrlParams$1, appendUrlParam as appendUrlParam$1, appendUrlParams as appendUrlParams$1, setBody as setBody$1, uint8ArrayBody as uint8ArrayBody$1, textBody as textBody$1, jsonBody as jsonBody$1, unsafeJsonBody as unsafeJsonBody$1, schemaBody as schemaBody$1, urlParamsBody as urlParamsBody$1, formDataBody as formDataBody$1, streamBody as streamBody$1, fileBody as fileBody$1, fileWebBody as fileWebBody$1 } from '../../../../internal/http/clientRequest.esm.js';
1
+ import { m as make$1, g as get$1, p as post$1, b as patch$1, c as put$1, d as del$1, h as head$1, o as options$1, e as modify$1, f as setMethod$1, s as setHeader$1, i as setHeaders$1, j as basicAuth$1, k as bearerToken$1, l as accept$1, n as acceptJson$1, q as setUrl$1, r as prependUrl$1, t as appendUrl$1, u as updateUrl$1, v as setUrlParam$1, w as setUrlParams$1, x as appendUrlParam$1, y as appendUrlParams$1, a as setBody$1, z as uint8ArrayBody$1, A as textBody$1, B as jsonBody$1, C as unsafeJsonBody$1, D as schemaBody$1, E as urlParamsBody$1, F as formDataBody$1, G as streamBody$1, H as fileBody$1, I as fileWebBody$1 } from './clientRequest-1e9e0b0d.esm.js';
2
2
 
3
3
  /**
4
4
  * @since 1.0.0
@@ -238,4 +238,44 @@ const fileBody = fileBody$1;
238
238
  */
239
239
  const fileWebBody = fileWebBody$1;
240
240
 
241
- export { TypeId, accept, acceptJson, appendUrl, appendUrlParam, appendUrlParams, basicAuth, bearerToken, del, fileBody, fileWebBody, formDataBody, get, head, jsonBody, make, modify, options, patch, post, prependUrl, put, schemaBody, setBody, setHeader, setHeaders, setMethod, setUrl, setUrlParam, setUrlParams, streamBody, textBody, uint8ArrayBody, unsafeJsonBody, updateUrl, urlParamsBody };
241
+ var ClientRequest = /*#__PURE__*/Object.freeze({
242
+ __proto__: null,
243
+ TypeId: TypeId,
244
+ make: make,
245
+ get: get,
246
+ post: post,
247
+ patch: patch,
248
+ put: put,
249
+ del: del,
250
+ head: head,
251
+ options: options,
252
+ modify: modify,
253
+ setMethod: setMethod,
254
+ setHeader: setHeader,
255
+ setHeaders: setHeaders,
256
+ basicAuth: basicAuth,
257
+ bearerToken: bearerToken,
258
+ accept: accept,
259
+ acceptJson: acceptJson,
260
+ setUrl: setUrl,
261
+ prependUrl: prependUrl,
262
+ appendUrl: appendUrl,
263
+ updateUrl: updateUrl,
264
+ setUrlParam: setUrlParam,
265
+ setUrlParams: setUrlParams,
266
+ appendUrlParam: appendUrlParam,
267
+ appendUrlParams: appendUrlParams,
268
+ setBody: setBody,
269
+ uint8ArrayBody: uint8ArrayBody,
270
+ textBody: textBody,
271
+ jsonBody: jsonBody,
272
+ unsafeJsonBody: unsafeJsonBody,
273
+ schemaBody: schemaBody,
274
+ urlParamsBody: urlParamsBody,
275
+ formDataBody: formDataBody,
276
+ streamBody: streamBody,
277
+ fileBody: fileBody,
278
+ fileWebBody: fileWebBody
279
+ });
280
+
281
+ export { textBody as A, jsonBody as B, ClientRequest as C, unsafeJsonBody as D, schemaBody as E, urlParamsBody as F, formDataBody as G, streamBody as H, fileBody as I, fileWebBody as J, TypeId as T, patch as a, put as b, modify as c, del as d, setHeader as e, setHeaders as f, get as g, head as h, basicAuth as i, bearerToken as j, accept as k, acceptJson as l, make as m, setUrl as n, options as o, post as p, prependUrl as q, appendUrl as r, setMethod as s, setUrlParam as t, updateUrl as u, setUrlParams as v, appendUrlParam as w, appendUrlParams as x, setBody as y, uint8ArrayBody as z };
@@ -0,0 +1,46 @@
1
+ import { T as TypeId$1, f as fromWeb$1, s as schemaJson$1 } from './clientResponse-ce25dbf3.esm.js';
2
+ import { schemaBodyJson, schemaBodyUrlParams, schemaHeaders } from '../Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.esm.js';
3
+
4
+ /**
5
+ * @since 1.0.0
6
+ */
7
+
8
+ /**
9
+ * @since 1.0.0
10
+ * @category type ids
11
+ */
12
+ const TypeId = TypeId$1;
13
+
14
+ /**
15
+ * @since 1.0.0
16
+ * @category type ids
17
+ */
18
+
19
+ /**
20
+ * @since 1.0.0
21
+ * @category models
22
+ */
23
+
24
+ /**
25
+ * @since 1.0.0
26
+ * @category constructors
27
+ */
28
+ const fromWeb = fromWeb$1;
29
+
30
+ /**
31
+ * @since 1.0.0
32
+ * @category schema
33
+ */
34
+ const schemaJson = schemaJson$1;
35
+
36
+ var ClientResponse = /*#__PURE__*/Object.freeze({
37
+ __proto__: null,
38
+ TypeId: TypeId,
39
+ fromWeb: fromWeb,
40
+ schemaJson: schemaJson,
41
+ schemaBodyJson: schemaBodyJson,
42
+ schemaBodyUrlParams: schemaBodyUrlParams,
43
+ schemaHeaders: schemaHeaders
44
+ });
45
+
46
+ export { ClientResponse as C, TypeId as T, fromWeb as f, schemaJson as s };