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

Method upgrade

packages/platform/node/src/NodeHttpServer.ts:388–397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

386 }
387
388 get upgrade(): Effect.Effect<Socket.Socket, HttpServerError> {
389 return this.upgradeEffect ?? Effect.fail(
390 new HttpServerError({
391 reason: new RequestParseError({
392 request: this,
393 description: "not an upgradeable ServerRequest"
394 })
395 })
396 )
397 }
398
399 override toString(): string {
400 return `ServerRequest(${this.method} ${this.url})`

Callers

nothing calls this directly

Calls 1

failMethod · 0.45

Tested by

no test coverage detected