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

Method modify

packages/platform/deno/src/DenoHttpServer.ts:328–342  ·  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

326 })
327 }
328 modify(options: {
329 readonly url?: string | undefined
330 readonly headers?: Headers.Headers | undefined
331 readonly remoteAddress?: Option.Option<string> | undefined
332 }) {
333 return new DenoServerRequest(
334 this.source,
335 this.remoteAddr,
336 this.resolve,
337 options.url ?? this.url,
338 this.websocketOptions,
339 options.headers ?? this.headersOverride,
340 "remoteAddress" in options ? options.remoteAddress : this.remoteAddressOverride
341 )
342 }
343 get method(): HttpMethod {
344 return this.source.method.toUpperCase() as HttpMethod
345 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected