HttpApiHyperlinkConfig<_ApiId, _Groups, Name>Configuration for HttpApiHyperlink.make / HttpApiHyperlink.Service.
export interface interface HttpApiHyperlinkConfig<_ApiId extends string, _Groups extends HttpApiGroup.Constraint, Name extends string = string>Configuration for
HttpApiHyperlink.make
/
HttpApiHyperlink.Service
.
HttpApiHyperlinkConfig<
function (type parameter) _ApiId in HttpApiHyperlinkConfig<_ApiId extends string, _Groups extends HttpApiGroup.Constraint, Name extends string = string>_ApiId extends string,
function (type parameter) _Groups in HttpApiHyperlinkConfig<_ApiId extends string, _Groups extends HttpApiGroup.Constraint, Name extends string = string>_Groups extends import HttpApiGroupHttpApiGroup.Constraint,
function (type parameter) Name in HttpApiHyperlinkConfig<_ApiId extends string, _Groups extends HttpApiGroup.Constraint, Name extends string = string>Name extends string = string,
> {
readonly HttpApiHyperlinkConfig<_ApiId extends string, _Groups extends HttpApiGroup.Constraint, Name extends string = string>.name: Name extends string = stringname: function (type parameter) Name in HttpApiHyperlinkConfig<_ApiId extends string, _Groups extends HttpApiGroup.Constraint, Name extends string = string>Name;
readonly HttpApiHyperlinkConfig<_ApiId extends string, _Groups extends HttpApiGroup.Constraint, Name extends string = string>.baseUrl?: string | URL | undefinedbaseUrl?: URL | string | undefined;
readonly HttpApiHyperlinkConfig<_ApiId extends string, _Groups extends HttpApiGroup.Constraint, Name extends string = string>.transformClient?: ((client: HttpClient.HttpClient) => HttpClient.HttpClient) | undefinedtransformClient?:
| ((client: HttpClient.HttpClient(parameter) client: {
preprocess: Preprocess<E, R>;
postprocess: Postprocess<E, R>;
execute: (request: HttpClientRequest.HttpClientRequest) => Effect.Effect<HttpClientResponse.HttpClientResponse, E, R>;
get: (url: string | URL, options?: HttpClientRequest.Options.NoUrl) => Effect.Effect<HttpClientResponse.HttpClientResponse, E, R>;
head: (url: string | URL, options?: HttpClientRequest.Options.NoUrl) => Effect.Effect<HttpClientResponse.HttpClientResponse, E, R>;
post: (url: string | URL, options?: HttpClientRequest.Options.NoUrl) => Effect.Effect<HttpClientResponse.HttpClientResponse, E, R>;
patch: (url: string | URL, options?: HttpClientRequest.Options.NoUrl) => Effect.Effect<HttpClientResponse.HttpClientResponse, E, R>;
put: (url: string | URL, options?: HttpClientRequest.Options.NoUrl) => Effect.Effect<HttpClientResponse.HttpClientResponse, E, R>;
del: (url: string | URL, options?: HttpClientRequest.Options.NoUrl) => Effect.Effect<HttpClientResponse.HttpClientResponse, E, R>;
options: (url: string | URL, options?: HttpClientRequest.Options.NoUrl) => Effect.Effect<HttpClientResponse.HttpClientResponse, E, R>;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
toString: () => string;
toJSON: () => unknown;
}
client: import HttpClientHttpClient.HttpClient) => import HttpClientHttpClient.HttpClient)
| undefined;
readonly HttpApiHyperlinkConfig<_ApiId extends string, _Groups extends HttpApiGroup.Constraint, Name extends string = string>.transformResponse?: ((effect: Effect.Effect<unknown, unknown, unknown>) => Effect.Effect<unknown, unknown, unknown>) | undefinedtransformResponse?:
| ((effect: Effect.Effect<unknown, unknown, unknown>(parameter) effect: {
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
toString: () => string;
toJSON: () => unknown;
}
effect: import EffectEffect.interface Effect<out A, out E = never, out R = never>The Effect interface defines a value that lazily describes a workflow or
job. The workflow requires some context R, and may fail with an error of
type E, or succeed with a value of type A.
When to use
Use when you need to represent a lazy, composable workflow that can require
services, fail with a typed error, or succeed with a typed value.
Details
Effect values model resourceful interaction with the outside world,
including synchronous, asynchronous, concurrent, and parallel interaction.
They use a fiber-based concurrency model, with built-in support for
scheduling, fine-grained interruption, structured concurrency, and high
scalability.
To run an Effect value, you need a Runtime, which is a type that is
capable of executing Effect values.
Effect<unknown, unknown, unknown>) => import EffectEffect.interface Effect<out A, out E = never, out R = never>The Effect interface defines a value that lazily describes a workflow or
job. The workflow requires some context R, and may fail with an error of
type E, or succeed with a value of type A.
When to use
Use when you need to represent a lazy, composable workflow that can require
services, fail with a typed error, or succeed with a typed value.
Details
Effect values model resourceful interaction with the outside world,
including synchronous, asynchronous, concurrent, and parallel interaction.
They use a fiber-based concurrency model, with built-in support for
scheduling, fine-grained interruption, structured concurrency, and high
scalability.
To run an Effect value, you need a Runtime, which is a type that is
capable of executing Effect values.
Effect<unknown, unknown, unknown>)
| undefined;
readonly HttpApiHyperlinkConfig<_ApiId extends string, _Groups extends HttpApiGroup.Constraint, Name extends string = string>.concurrency?: number | undefinedconcurrency?: number;
}