MCPcopy Create free account
hub / github.com/effect-app/libs / makeRoute

Function makeRoute

repos/effect/packages/effect/src/unstable/http/HttpRouter.ts:629–640  ·  view source on GitHub ↗
(options: {
  readonly method: HttpMethod.HttpMethod | "*"
  readonly path: PathInput
  readonly handler: Effect.Effect<HttpServerResponse.HttpServerResponse, E, R>
  readonly uninterruptible?: boolean | undefined
  readonly prefix?: Option.Option<string> | string | undefined
})

Source from the content-addressed store, hash-verified

627 /**
628 * Extracts the error type produced by a `Route` handler.
629 *
630 * @category routes
631 * @since 4.0.0
632 */
633 export type Error<R extends Route<any, any>> = R extends Route<infer E, infer _R> ? E : never
634
635 /**
636 * Extracts the context requirements of a `Route` handler.
637 *
638 * @category routes
639 * @since 4.0.0
640 */
641 export type Context<T extends Route<any, any>> = T extends Route<infer _E, infer R> ? R : never
642}
643

Callers 4

addAllFunction · 0.85
prefixedFunction · 0.85
routeFunction · 0.85
HttpRouter.tsFile · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…