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

Method modify

packages/platform/bun/src/BunHttpServer.ts:385–400  ·  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

383 })
384 }
385 modify(
386 options: {
387 readonly url?: string | undefined
388 readonly headers?: Headers.Headers | undefined
389 readonly remoteAddress?: Option.Option<string> | undefined
390 }
391 ) {
392 return new BunServerRequest(
393 this.source,
394 this.resolve,
395 options.url ?? this.url,
396 this.bunServer,
397 options.headers ?? this.headersOverride,
398 "remoteAddress" in options ? options.remoteAddress : this.remoteAddressOverride
399 )
400 }
401 get method(): HttpMethod {
402 return this.source.method.toUpperCase() as HttpMethod
403 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected