viell-effect-schema-http 0.0.0-stage → 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +88 -2
- package/dist/concurrency/Interaction.d.ts +65 -0
- package/dist/concurrency/Interaction.d.ts.map +1 -0
- package/dist/concurrency/Interaction.js +99 -0
- package/dist/concurrency/Interaction.js.map +1 -0
- package/dist/http/Body.d.ts +162 -0
- package/dist/http/Body.d.ts.map +1 -0
- package/dist/http/Body.js +184 -0
- package/dist/http/Body.js.map +1 -0
- package/dist/http/Operation.d.ts +97 -0
- package/dist/http/Operation.d.ts.map +1 -0
- package/dist/http/Operation.js +146 -0
- package/dist/http/Operation.js.map +1 -0
- package/dist/http/Policy.d.ts +82 -0
- package/dist/http/Policy.d.ts.map +1 -0
- package/dist/http/Policy.js +76 -0
- package/dist/http/Policy.js.map +1 -0
- package/dist/http/Request.d.ts +324 -0
- package/dist/http/Request.d.ts.map +1 -0
- package/dist/http/Request.js +391 -0
- package/dist/http/Request.js.map +1 -0
- package/dist/http/Response.d.ts +126 -0
- package/dist/http/Response.d.ts.map +1 -0
- package/dist/http/Response.js +100 -0
- package/dist/http/Response.js.map +1 -0
- package/dist/http/Transport.d.ts +75 -0
- package/dist/http/Transport.d.ts.map +1 -0
- package/dist/http/Transport.js +91 -0
- package/dist/http/Transport.js.map +1 -0
- package/dist/http/UrlEncoding.d.ts +78 -0
- package/dist/http/UrlEncoding.d.ts.map +1 -0
- package/dist/http/UrlEncoding.js +64 -0
- package/dist/http/UrlEncoding.js.map +1 -0
- package/dist/http/internal/fields.d.ts +12 -0
- package/dist/http/internal/fields.d.ts.map +1 -0
- package/dist/http/internal/fields.js +21 -0
- package/dist/http/internal/fields.js.map +1 -0
- package/dist/main.d.ts +33 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +33 -0
- package/dist/main.js.map +1 -0
- package/package.json +125 -4
- package/src/concurrency/Interaction.ts +192 -0
- package/src/http/Body.ts +318 -0
- package/src/http/Operation.ts +300 -0
- package/src/http/Policy.ts +130 -0
- package/src/http/Request.ts +700 -0
- package/src/http/Response.ts +201 -0
- package/src/http/Transport.ts +143 -0
- package/src/http/UrlEncoding.ts +119 -0
- package/src/http/internal/fields.ts +46 -0
- package/src/main.ts +32 -0
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { Effect, Pipeable, Schema } from "effect";
|
|
2
|
+
import { HttpClientRequest, UrlParams } from "effect/http";
|
|
3
|
+
import type * as Body from "./Body.js";
|
|
4
|
+
import * as Fields from "./internal/fields.js";
|
|
5
|
+
import * as Transport from "./Transport.js";
|
|
6
|
+
import * as UrlEncoding from "./UrlEncoding.js";
|
|
7
|
+
declare const InvalidRequest_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
8
|
+
readonly _tag: "InvalidRequest";
|
|
9
|
+
} & Readonly<A>;
|
|
10
|
+
/**
|
|
11
|
+
* Request preparation failed before dispatch.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* Covers computed-field failures, URL-rendering exceptions, and a GET/HEAD body other than
|
|
15
|
+
* `HttpBody.empty`. Schema encoding failures remain separate `SchemaError` values.
|
|
16
|
+
*/
|
|
17
|
+
export declare class InvalidRequest extends InvalidRequest_base<{
|
|
18
|
+
readonly message: string;
|
|
19
|
+
readonly cause?: unknown;
|
|
20
|
+
}> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A fixed header or query value, or a function that supplies it during preparation.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* A function runs once each time the request is compiled, not once per retry. `undefined` omits
|
|
27
|
+
* the field. Query fields also accept `null` for a bare key.
|
|
28
|
+
*/
|
|
29
|
+
export type FieldValue<A = string> = Fields.Value<A>;
|
|
30
|
+
/**
|
|
31
|
+
* The method, URL and raw fields from which request preparation starts.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* This is a low-level extension type. Prefer {@link make} and the request combinators.
|
|
35
|
+
* `H` and `Q` record whether a schema owns each field group.
|
|
36
|
+
*/
|
|
37
|
+
export interface Declaration<H extends boolean = boolean, Q extends boolean = boolean> {
|
|
38
|
+
readonly method: string;
|
|
39
|
+
readonly url: string;
|
|
40
|
+
readonly baseUrl: string;
|
|
41
|
+
readonly headers: Fields.Fields;
|
|
42
|
+
readonly query: Fields.Fields<string | null>;
|
|
43
|
+
/** Whether a schema owns the header group; raw header setters are then unavailable. */
|
|
44
|
+
readonly headersBound: H;
|
|
45
|
+
/** Whether a schema owns the query group; raw query setters are then unavailable. */
|
|
46
|
+
readonly queryBound: Q;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* One entry in Effect's native query collection.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Drafts use entry identity to distinguish bare keys from empty values.
|
|
53
|
+
*/
|
|
54
|
+
export type UrlParam = UrlParams.UrlParams["params"][number];
|
|
55
|
+
/**
|
|
56
|
+
* The native request and representation details available during input preparation.
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* The base URL and final query text are applied after preparation. Prefer public combinators
|
|
60
|
+
* unless implementing a low-level extension.
|
|
61
|
+
*/
|
|
62
|
+
export interface Draft {
|
|
63
|
+
/** Method, path or URL, query parameters, normalized headers and body. */
|
|
64
|
+
readonly request: HttpClientRequest.HttpClientRequest;
|
|
65
|
+
/** The authoritative header lines; compilation reconciles them with the native headers. */
|
|
66
|
+
readonly headerLines: Transport.Lines;
|
|
67
|
+
/** Native query entries that render as bare keys. Replacing an entry loses its identity marker. */
|
|
68
|
+
readonly bareKeys: ReadonlySet<UrlParam>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* An immutable HTTP request description with typed application input.
|
|
72
|
+
*
|
|
73
|
+
* @remarks
|
|
74
|
+
* Construction sends nothing. {@link compile} prepares it; `Operation.make` prepares and sends it.
|
|
75
|
+
* `I` is the complete input, `E` its preparation errors, and `R` its required services.
|
|
76
|
+
* `H` and `Q` record whether schemas own the header and query groups.
|
|
77
|
+
* `declaration` and `prepare` are low-level extension points.
|
|
78
|
+
*/
|
|
79
|
+
export interface Request<in I, out E = never, out R = never, out H extends boolean = false, out Q extends boolean = false> extends Pipeable.Pipeable {
|
|
80
|
+
readonly declaration: Declaration<H, Q>;
|
|
81
|
+
readonly prepare: (input: I, draft: Draft) => Effect.Effect<Draft, E, R>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Describe a request with a method and URL, without sending it.
|
|
85
|
+
*
|
|
86
|
+
* @remarks
|
|
87
|
+
* Use `undefined` as input until a binding adds required fields. A relative path can be combined
|
|
88
|
+
* with {@link baseUrl}; {@link path} can supply the complete path from typed input.
|
|
89
|
+
* Custom method strings pass through unchanged.
|
|
90
|
+
*
|
|
91
|
+
* A constructor query is parsed as form data: `+` becomes a space, percent escapes are decoded,
|
|
92
|
+
* and empty `&` segments are dropped. Bare keys remain distinct from empty values. Compilation
|
|
93
|
+
* renders these entries through `UrlEncoding.query`; a constructor fragment is discarded.
|
|
94
|
+
*/
|
|
95
|
+
export declare const make: (method: string, url: string) => Request<unknown>;
|
|
96
|
+
/**
|
|
97
|
+
* Describe a GET request. Use {@link baseUrl} for a shared origin or path prefix.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* import { Request } from "viell-effect-schema-http";
|
|
102
|
+
* const users = Request.get("/users").pipe(
|
|
103
|
+
* Request.baseUrl("https://api.example.test/api/v1"),
|
|
104
|
+
* );
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
export declare const get: (url: string) => Request<unknown>;
|
|
108
|
+
/**
|
|
109
|
+
* Describe a POST request. Add typed input with {@link body}, {@link path} or other bindings.
|
|
110
|
+
*/
|
|
111
|
+
export declare const post: (url: string) => Request<unknown>;
|
|
112
|
+
/**
|
|
113
|
+
* Describe a PUT request. Add an outgoing representation with {@link body}.
|
|
114
|
+
*/
|
|
115
|
+
export declare const put: (url: string) => Request<unknown>;
|
|
116
|
+
/**
|
|
117
|
+
* Describe a PATCH request. Add an outgoing representation with {@link body}.
|
|
118
|
+
*/
|
|
119
|
+
export declare const patch: (url: string) => Request<unknown>;
|
|
120
|
+
/**
|
|
121
|
+
* Describe a DELETE request. A response contract decides which deletion outcomes to accept.
|
|
122
|
+
*/
|
|
123
|
+
export declare const del: (url: string) => Request<unknown>;
|
|
124
|
+
/**
|
|
125
|
+
* Describe a HEAD request. Its outgoing body must remain `HttpBody.empty`.
|
|
126
|
+
*/
|
|
127
|
+
export declare const head: (url: string) => Request<unknown>;
|
|
128
|
+
/**
|
|
129
|
+
* Describe an OPTIONS request. The HTTP provider still controls browser preflight behavior.
|
|
130
|
+
*/
|
|
131
|
+
export declare const options: (url: string) => Request<unknown>;
|
|
132
|
+
/**
|
|
133
|
+
* Set the shared origin and fixed path prefix for a request.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```ts
|
|
137
|
+
* import { Request } from "viell-effect-schema-http";
|
|
138
|
+
* const api = Request.baseUrl("https://api.example.test/api/v1");
|
|
139
|
+
* const users = Request.get("/users").pipe(api);
|
|
140
|
+
* const teams = Request.get("/teams").pipe(api);
|
|
141
|
+
* ```
|
|
142
|
+
*
|
|
143
|
+
* @remarks
|
|
144
|
+
* The base is joined after path preparation. With the default URL policy, an absolute request
|
|
145
|
+
* URL bypasses it; a leading `/` on a relative path keeps the base's prefix. Calling this again
|
|
146
|
+
* replaces the base, rather than appending to it. Keep query fields in request combinators.
|
|
147
|
+
*/
|
|
148
|
+
export declare const baseUrl: (url: string) => <I, E, R, H extends boolean, Q extends boolean>(self: Request<I, E, R, H, Q>) => Request<I, E, R, H, Q>;
|
|
149
|
+
/**
|
|
150
|
+
* Set a raw header, replacing every existing line with that name.
|
|
151
|
+
*
|
|
152
|
+
* @remarks
|
|
153
|
+
* Names compare without case and are stored lowercase. Unavailable after a header schema is
|
|
154
|
+
* bound. The body encoder owns `Content-Type` and `Content-Length`.
|
|
155
|
+
*/
|
|
156
|
+
export declare const setHeader: (name: string, value: FieldValue) => <I, E, R, Q extends boolean>(self: Request<I, E, R, false, Q>) => Request<I, E, R, false, Q>;
|
|
157
|
+
/**
|
|
158
|
+
* Add a raw header line after the existing lines, preserving repetition.
|
|
159
|
+
*
|
|
160
|
+
* @remarks
|
|
161
|
+
* Names are stored lowercase. Unavailable after a header schema is bound. Sending separate
|
|
162
|
+
* lines requires a provider that supports them; Fetch may combine or restrict headers.
|
|
163
|
+
*/
|
|
164
|
+
export declare const appendHeader: (name: string, value: FieldValue) => <I, E, R, Q extends boolean>(self: Request<I, E, R, false, Q>) => Request<I, E, R, false, Q>;
|
|
165
|
+
/**
|
|
166
|
+
* Remove a raw header, or only its declarations with the supplied fixed value.
|
|
167
|
+
*
|
|
168
|
+
* @remarks
|
|
169
|
+
* Names compare without case. Value functions are never evaluated to compare with `value`.
|
|
170
|
+
* Unavailable after a header schema is bound.
|
|
171
|
+
*/
|
|
172
|
+
export declare const removeHeader: (name: string, value?: string) => <I, E, R, Q extends boolean>(self: Request<I, E, R, false, Q>) => Request<I, E, R, false, Q>;
|
|
173
|
+
/**
|
|
174
|
+
* Set a raw query field, replacing entries with the same case-sensitive name.
|
|
175
|
+
*
|
|
176
|
+
* @remarks
|
|
177
|
+
* `null` produces a bare key, `""` an empty value, and `undefined` omits the entry.
|
|
178
|
+
* Unavailable after a query schema is bound.
|
|
179
|
+
*/
|
|
180
|
+
export declare const setQuery: (name: string, value: FieldValue<string | null>) => <I, E, R, H extends boolean>(self: Request<I, E, R, H, false>) => Request<I, E, R, H, false>;
|
|
181
|
+
/**
|
|
182
|
+
* Append a raw query entry, preserving order and repeated names.
|
|
183
|
+
*
|
|
184
|
+
* @remarks
|
|
185
|
+
* Uses the same value rules as {@link setQuery}. Unavailable after a query schema is bound.
|
|
186
|
+
*/
|
|
187
|
+
export declare const appendQuery: (name: string, value: FieldValue<string | null>) => <I, E, R, H extends boolean>(self: Request<I, E, R, H, false>) => Request<I, E, R, H, false>;
|
|
188
|
+
/**
|
|
189
|
+
* Remove a raw query field, or only declarations with the supplied fixed value.
|
|
190
|
+
*
|
|
191
|
+
* @remarks
|
|
192
|
+
* Names compare with case. Value functions are not evaluated for comparison.
|
|
193
|
+
* Unavailable after a query schema is bound.
|
|
194
|
+
*/
|
|
195
|
+
export declare const removeQuery: (name: string, value?: string | null) => <I, E, R, H extends boolean>(self: Request<I, E, R, H, false>) => Request<I, E, R, H, false>;
|
|
196
|
+
/**
|
|
197
|
+
* Bind a schema to the call's `{ headers }` input.
|
|
198
|
+
*
|
|
199
|
+
* @remarks
|
|
200
|
+
* Encoding produces ordered header lines. The schema replaces raw header declarations and owns
|
|
201
|
+
* the group: later raw setters or another header schema are unavailable.
|
|
202
|
+
* When a body is present, its `Content-Type` and `Content-Length` take precedence, regardless of
|
|
203
|
+
* binding order. Without a body, the schema values apply; a later body binding, including
|
|
204
|
+
* `Body.empty`, replaces those fields according to its encoder.
|
|
205
|
+
*/
|
|
206
|
+
export declare const headers: <S extends Schema.ConstraintCodec<unknown, Transport.HeaderInput, unknown, unknown>>(contract: S) => <I, E, R, Q extends boolean>(self: Request<I, E, R, false, Q>) => Request<I & {
|
|
207
|
+
readonly headers: S["Type"];
|
|
208
|
+
}, E | Schema.SchemaError, R | S["EncodingServices"], true, Q>;
|
|
209
|
+
/**
|
|
210
|
+
* Bind a schema to the call's `{ query }` input.
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```ts
|
|
214
|
+
* import { Schema } from "effect";
|
|
215
|
+
* import { Request } from "viell-effect-schema-http";
|
|
216
|
+
* const search = Request.get("https://api.example.test/users").pipe(
|
|
217
|
+
* Request.query(Schema.Struct({ page: Schema.NumberFromString })),
|
|
218
|
+
* );
|
|
219
|
+
* // Input: { query: { page: 2 } }; URL query: ?page=2
|
|
220
|
+
* ```
|
|
221
|
+
*
|
|
222
|
+
* @remarks
|
|
223
|
+
* The schema encodes to `UrlEncoding.QueryInput`. It replaces raw query declarations, including
|
|
224
|
+
* the constructor's query string, and owns the group. Later raw setters or another query schema
|
|
225
|
+
* are unavailable. Use {@link mapInput} to supply application defaults.
|
|
226
|
+
*/
|
|
227
|
+
export declare const query: <S extends Schema.ConstraintCodec<unknown, UrlEncoding.QueryInput, unknown, unknown>>(contract: S) => <I, E, R, H extends boolean>(self: Request<I, E, R, H, false>) => Request<I & {
|
|
228
|
+
readonly query: S["Type"];
|
|
229
|
+
}, E | Schema.SchemaError, R | S["EncodingServices"], H, true>;
|
|
230
|
+
/**
|
|
231
|
+
* Bind a schema to `{ path }` input and render the complete request path.
|
|
232
|
+
*
|
|
233
|
+
* @example
|
|
234
|
+
* ```ts
|
|
235
|
+
* import { Schema } from "effect";
|
|
236
|
+
* import { Request } from "viell-effect-schema-http";
|
|
237
|
+
* const user = Request.get("").pipe(
|
|
238
|
+
* Request.baseUrl("https://api.example.test"),
|
|
239
|
+
* Request.path(Schema.NumberFromString, (id, encode) => `/users/${encode(id)}`),
|
|
240
|
+
* );
|
|
241
|
+
* // Input: { path: 42 }; URL: https://api.example.test/users/42
|
|
242
|
+
* ```
|
|
243
|
+
*
|
|
244
|
+
* @remarks
|
|
245
|
+
* The value under `path` has the schema's application type. A scalar schema takes a scalar;
|
|
246
|
+
* `Schema.Struct({ userId: Schema.NumberFromString })` takes `{ userId: number }`. Use a struct
|
|
247
|
+
* to name one path value or group several. Renderer parameter names do not affect the input type.
|
|
248
|
+
*
|
|
249
|
+
* The renderer receives the schema-encoded value and the active path-value encoder. Escape each
|
|
250
|
+
* dynamic value with that encoder. The returned path replaces the constructor's path; it does
|
|
251
|
+
* not append to it. The shared base URL is joined afterwards. Reuse renderer functions for
|
|
252
|
+
* nested resources rather than stacking path bindings.
|
|
253
|
+
* Renderer or path-encoding exceptions become {@link InvalidRequest}; schema failures remain
|
|
254
|
+
* `SchemaError` values.
|
|
255
|
+
*/
|
|
256
|
+
export declare const path: <S extends Schema.Constraint>(contract: S, render: (value: S["Encoded"], encode: UrlEncoding.Service["path"]) => string) => <I, E, R, H extends boolean, Q extends boolean>(self: Request<I, E, R, H, Q>) => Request<I & {
|
|
257
|
+
readonly path: S["Type"];
|
|
258
|
+
}, E | Schema.SchemaError | InvalidRequest, R | S["EncodingServices"], H, Q>;
|
|
259
|
+
/**
|
|
260
|
+
* Bind an encoder to the call's `{ body }` input.
|
|
261
|
+
*
|
|
262
|
+
* @remarks
|
|
263
|
+
* The body is encoded once per operation evaluation. Its encoder determines `Content-Type` and
|
|
264
|
+
* `Content-Length`; multipart metadata is supplied by the transport.
|
|
265
|
+
*/
|
|
266
|
+
export declare const body: <A, E2, R2>(codec: Body.Encoder<A, E2, R2>) => <I, E, R, H extends boolean, Q extends boolean>(self: Request<I, E, R, H, Q>) => Request<I & {
|
|
267
|
+
readonly body: A;
|
|
268
|
+
}, E | E2, R | R2, H, Q>;
|
|
269
|
+
/**
|
|
270
|
+
* Adapt your application's argument to this request's required input.
|
|
271
|
+
*
|
|
272
|
+
* @remarks
|
|
273
|
+
* Use it to rename fields or supply defaults while preserving schema validation. The mapping
|
|
274
|
+
* runs during preparation; a thrown exception is a defect.
|
|
275
|
+
*/
|
|
276
|
+
export declare const mapInput: <I, I2>(f: (input: I2) => I) => <E, R, H extends boolean, Q extends boolean>(self: Request<I, E, R, H, Q>) => Request<I2, E, R, H, Q>;
|
|
277
|
+
/**
|
|
278
|
+
* Edit the native request with an Effect during preparation.
|
|
279
|
+
*
|
|
280
|
+
* @remarks
|
|
281
|
+
* Runs once per evaluation, before attempts, after preceding preparation steps. The base URL
|
|
282
|
+
* and separate query parameters are not yet rendered. Use `Operation.make`'s `transformClient`
|
|
283
|
+
* for per-attempt credentials or signing the materialized URL. Provider normalization still
|
|
284
|
+
* applies afterwards.
|
|
285
|
+
*
|
|
286
|
+
* A transform can be reused on requests whose input contains what its function reads. Inline
|
|
287
|
+
* callbacks in `pipe` infer their input from the request.
|
|
288
|
+
*/
|
|
289
|
+
export declare const mapEffect: <I, E2, R2>(f: (request: HttpClientRequest.HttpClientRequest, input: I) => Effect.Effect<HttpClientRequest.HttpClientRequest, E2, R2>) => <E, R, H extends boolean, Q extends boolean, I2 extends I = I>(self: Request<I, E, R, H, Q> | Request<I2, E, R, H, Q>) => Request<I2, E | E2, R | R2, H, Q>;
|
|
290
|
+
/**
|
|
291
|
+
* A prepared native request and the header lines a supporting provider can send.
|
|
292
|
+
*/
|
|
293
|
+
export interface Compiled {
|
|
294
|
+
readonly request: HttpClientRequest.HttpClientRequest;
|
|
295
|
+
readonly headerLines: Transport.Lines;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Prepare a request and its header lines without sending it.
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* ```ts
|
|
302
|
+
* import { Effect } from "effect";
|
|
303
|
+
* import { Request } from "viell-effect-schema-http";
|
|
304
|
+
* const result = await Effect.runPromise(
|
|
305
|
+
* Request.compile(Request.get("https://api.example.test/health"), undefined),
|
|
306
|
+
* );
|
|
307
|
+
* // result.request.url === "https://api.example.test/health"
|
|
308
|
+
* ```
|
|
309
|
+
*
|
|
310
|
+
* @remarks
|
|
311
|
+
* Each evaluation resolves computed fields and encodes input once. The returned Effect requires
|
|
312
|
+
* any services used by the input schemas or preparation. Use {@link materialize} when only the
|
|
313
|
+
* native request is needed.
|
|
314
|
+
*/
|
|
315
|
+
export declare const compile: <I, E, R, H extends boolean, Q extends boolean>(self: Request<I, E, R, H, Q>, input: I) => Effect.Effect<Compiled, InvalidRequest | E, R>;
|
|
316
|
+
/**
|
|
317
|
+
* Prepare only the native request, without sending it.
|
|
318
|
+
*
|
|
319
|
+
* @remarks
|
|
320
|
+
* Use {@link compile} to retain the original header-line representation as well.
|
|
321
|
+
*/
|
|
322
|
+
export declare const materialize: <I, E, R, H extends boolean, Q extends boolean>(self: Request<I, E, R, H, Q>, input: I) => Effect.Effect<HttpClientRequest.HttpClientRequest, E | InvalidRequest, R>;
|
|
323
|
+
export {};
|
|
324
|
+
//# sourceMappingURL=Request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../src/http/Request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,MAAM,EAAE,QAAQ,EAAY,MAAM,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,EAEL,iBAAiB,EAEjB,SAAS,EACV,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;;;;AAEhD;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,oBAAmC;IACrE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;CAAG;AAEL;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAErD;;;;;;GAMG;AACH,MAAM,WAAW,WAAW,CAC1B,CAAC,SAAS,OAAO,GAAG,OAAO,EAC3B,CAAC,SAAS,OAAO,GAAG,OAAO;IAE3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7C,uFAA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