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

Method modify

packages/platform/node/src/NodeHttpServer.ts:332–347  ·  view source on GitHub ↗
(
    options: {
      readonly url?: string | undefined
      readonly headers?: Headers.Headers | undefined
      readonly remoteAddress?: Option.Option<string> | undefined
    }
  )

Source from the content-addressed store, hash-verified

330 }
331
332 modify(
333 options: {
334 readonly url?: string | undefined
335 readonly headers?: Headers.Headers | undefined
336 readonly remoteAddress?: Option.Option<string> | undefined
337 }
338 ) {
339 return new ServerRequestImpl(
340 this.source,
341 this.response,
342 this.upgradeEffect,
343 options.url ?? this.url,
344 options.headers ?? this.headersOverride,
345 "remoteAddress" in options ? options.remoteAddress : this.remoteAddressOverride
346 )
347 }
348
349 get originalUrl(): string {
350 return this.source.url!

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected