MCPcopy Create free account
hub / github.com/Effect-TS/effect / http

Function http

packages/effect/src/unstable/httpapi/HttpApiSecurity.ts:126–134  ·  view source on GitHub ↗
(options: {
  readonly scheme: string
})

Source from the content-addressed store, hash-verified

124 * @since 4.0.0
125 */
126export const http = (options: {
127 readonly scheme: string
128}): Http =>
129 Object.assign(Object.create(Proto), {
130 _tag: "Http",
131 scheme: options.scheme,
132 schemeLength: options.scheme.length,
133 annotations: Context.empty()
134 })
135
136/**
137 * Creates a Bearer token security scheme.

Callers 1

HttpApiSecurity.tsFile · 0.85

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected