@effect/platform 0.18.4 → 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 (72) 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 -151
  7. package/Http/Client/dist/effect-platform-Http-Client.esm.js +28 -164
  8. package/Http/ClientError/dist/effect-platform-Http-ClientError.esm.js +3 -48
  9. package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.esm.js +20 -241
  10. package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.esm.js +22 -35
  11. package/Http/Etag/dist/effect-platform-Http-Etag.esm.js +17 -1
  12. package/Http/FormData/dist/effect-platform-Http-FormData.esm.js +17 -155
  13. package/Http/Headers/dist/effect-platform-Http-Headers.esm.js +4 -74
  14. package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.esm.js +6 -1
  15. package/Http/Middleware/dist/effect-platform-Http-Middleware.esm.js +30 -52
  16. package/Http/Platform/dist/effect-platform-Http-Platform.esm.js +56 -1
  17. package/Http/Router/dist/effect-platform-Http-Router.esm.js +25 -224
  18. package/Http/Server/dist/effect-platform-Http-Server.esm.js +18 -1
  19. package/Http/ServerError/dist/effect-platform-Http-ServerError.esm.js +2 -70
  20. package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.esm.js +20 -65
  21. package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.esm.js +21 -126
  22. package/Http/UrlParams/dist/effect-platform-Http-UrlParams.esm.js +4 -101
  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/dist/Body-ec1353f9.esm.js +170 -0
  30. package/dist/Client-52ebd74a.esm.js +346 -0
  31. package/dist/ClientError-98b5da8c.esm.js +55 -0
  32. package/dist/ClientRequest-fc429335.esm.js +281 -0
  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/dist/Headers-58b56a08.esm.js +85 -0
  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/dist/UrlParams-1286c728.esm.js +114 -0
  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/internal/command.esm.js +0 -185
  60. package/internal/effectify.esm.js +0 -18
  61. package/internal/error.esm.js +0 -17
  62. package/internal/fileSystem.esm.js +0 -82
  63. package/internal/http/client.esm.js +0 -157
  64. package/internal/http/etag.esm.js +0 -19
  65. package/internal/http/formData.esm.js +0 -95
  66. package/internal/http/middleware.esm.js +0 -46
  67. package/internal/http/platform.esm.js +0 -52
  68. package/internal/http/router.esm.js +0 -199
  69. package/internal/http/server.esm.js +0 -20
  70. package/internal/http/serverError.esm.js +0 -23
  71. package/internal/http/serverRequest.esm.js +0 -50
  72. package/internal/http/serverResponse.esm.js +0 -105
@@ -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 };
@@ -0,0 +1,55 @@
1
+ import { T as TypeId$1, r as requestError, a as responseError } from './clientError-c4e1466c.esm.js';
2
+
3
+ /**
4
+ * @since 1.0.0
5
+ */
6
+ /**
7
+ * @since 1.0.0
8
+ * @category type id
9
+ */
10
+ const TypeId = TypeId$1;
11
+
12
+ /**
13
+ * @since 1.0.0
14
+ * @category type id
15
+ */
16
+
17
+ /**
18
+ * @since 1.0.0
19
+ * @category error
20
+ */
21
+
22
+ /**
23
+ * @since 1.0.0
24
+ */
25
+
26
+ /**
27
+ * @since 1.0.0
28
+ * @category error
29
+ */
30
+
31
+ /**
32
+ * @since 1.0.0
33
+ * @category error
34
+ */
35
+ const RequestError = requestError;
36
+
37
+ /**
38
+ * @since 1.0.0
39
+ * @category error
40
+ */
41
+
42
+ /**
43
+ * @since 1.0.0
44
+ * @category error
45
+ */
46
+ const ResponseError = responseError;
47
+
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 };
@@ -0,0 +1,281 @@
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
+
3
+ /**
4
+ * @since 1.0.0
5
+ */
6
+ /**
7
+ * @since 1.0.0
8
+ * @category type ids
9
+ */
10
+ const TypeId = /*#__PURE__*/Symbol.for("@effect/platform/Http/ClientRequest");
11
+
12
+ /**
13
+ * @since 1.0.0
14
+ * @category type ids
15
+ */
16
+
17
+ /**
18
+ * @since 1.0.0
19
+ * @category models
20
+ */
21
+
22
+ /**
23
+ * @since 1.0.0
24
+ * @category models
25
+ */
26
+
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+
31
+ /**
32
+ * @since 1.0.0
33
+ * @category constructors
34
+ */
35
+ const make = make$1;
36
+
37
+ /**
38
+ * @since 1.0.0
39
+ * @category constructors
40
+ */
41
+ const get = get$1;
42
+
43
+ /**
44
+ * @since 1.0.0
45
+ * @category constructors
46
+ */
47
+ const post = post$1;
48
+
49
+ /**
50
+ * @since 1.0.0
51
+ * @category constructors
52
+ */
53
+ const patch = patch$1;
54
+
55
+ /**
56
+ * @since 1.0.0
57
+ * @category constructors
58
+ */
59
+ const put = put$1;
60
+
61
+ /**
62
+ * @since 1.0.0
63
+ * @category constructors
64
+ */
65
+ const del = del$1;
66
+
67
+ /**
68
+ * @since 1.0.0
69
+ * @category constructors
70
+ */
71
+ const head = head$1;
72
+
73
+ /**
74
+ * @since 1.0.0
75
+ * @category constructors
76
+ */
77
+ const options = options$1;
78
+
79
+ /**
80
+ * @since 1.0.0
81
+ * @category combinators
82
+ */
83
+ const modify = modify$1;
84
+
85
+ /**
86
+ * @since 1.0.0
87
+ * @category combinators
88
+ */
89
+ const setMethod = setMethod$1;
90
+
91
+ /**
92
+ * @since 1.0.0
93
+ * @category combinators
94
+ */
95
+ const setHeader = setHeader$1;
96
+
97
+ /**
98
+ * @since 1.0.0
99
+ * @category combinators
100
+ */
101
+ const setHeaders = setHeaders$1;
102
+
103
+ /**
104
+ * @since 1.0.0
105
+ * @category combinators
106
+ */
107
+ const basicAuth = basicAuth$1;
108
+
109
+ /**
110
+ * @since 1.0.0
111
+ * @category combinators
112
+ */
113
+ const bearerToken = bearerToken$1;
114
+
115
+ /**
116
+ * @since 1.0.0
117
+ * @category combinators
118
+ */
119
+ const accept = accept$1;
120
+
121
+ /**
122
+ * @since 1.0.0
123
+ * @category combinators
124
+ */
125
+ const acceptJson = acceptJson$1;
126
+
127
+ /**
128
+ * @since 1.0.0
129
+ * @category combinators
130
+ */
131
+ const setUrl = setUrl$1;
132
+
133
+ /**
134
+ * @since 1.0.0
135
+ * @category combinators
136
+ */
137
+ const prependUrl = prependUrl$1;
138
+
139
+ /**
140
+ * @since 1.0.0
141
+ * @category combinators
142
+ */
143
+ const appendUrl = appendUrl$1;
144
+
145
+ /**
146
+ * @since 1.0.0
147
+ * @category combinators
148
+ */
149
+ const updateUrl = updateUrl$1;
150
+
151
+ /**
152
+ * @since 1.0.0
153
+ * @category combinators
154
+ */
155
+ const setUrlParam = setUrlParam$1;
156
+
157
+ /**
158
+ * @since 1.0.0
159
+ * @category combinators
160
+ */
161
+ const setUrlParams = setUrlParams$1;
162
+
163
+ /**
164
+ * @since 1.0.0
165
+ * @category combinators
166
+ */
167
+ const appendUrlParam = appendUrlParam$1;
168
+
169
+ /**
170
+ * @since 1.0.0
171
+ * @category combinators
172
+ */
173
+ const appendUrlParams = appendUrlParams$1;
174
+
175
+ /**
176
+ * @since 1.0.0
177
+ * @category combinators
178
+ */
179
+ const setBody = setBody$1;
180
+
181
+ /**
182
+ * @since 1.0.0
183
+ * @category combinators
184
+ */
185
+ const uint8ArrayBody = uint8ArrayBody$1;
186
+
187
+ /**
188
+ * @since 1.0.0
189
+ * @category combinators
190
+ */
191
+ const textBody = textBody$1;
192
+
193
+ /**
194
+ * @since 1.0.0
195
+ * @category combinators
196
+ */
197
+ const jsonBody = jsonBody$1;
198
+
199
+ /**
200
+ * @since 1.0.0
201
+ * @category combinators
202
+ */
203
+ const unsafeJsonBody = unsafeJsonBody$1;
204
+
205
+ /**
206
+ * @since 1.0.0
207
+ * @category combinators
208
+ */
209
+ const schemaBody = schemaBody$1;
210
+
211
+ /**
212
+ * @since 1.0.0
213
+ * @category combinators
214
+ */
215
+ const urlParamsBody = urlParamsBody$1;
216
+
217
+ /**
218
+ * @since 1.0.0
219
+ * @category combinators
220
+ */
221
+ const formDataBody = formDataBody$1;
222
+
223
+ /**
224
+ * @since 1.0.0
225
+ * @category combinators
226
+ */
227
+ const streamBody = streamBody$1;
228
+
229
+ /**
230
+ * @since 1.0.0
231
+ * @category combinators
232
+ */
233
+ const fileBody = fileBody$1;
234
+
235
+ /**
236
+ * @since 1.0.0
237
+ * @category combinators
238
+ */
239
+ const fileWebBody = fileWebBody$1;
240
+
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 };