Skip to content

Add a per-call options channel on the request context #27

Description

@OmarAlJarrah

Problem

There's no per-call override for timeout, response-validation, or an ad-hoc credential. DispatchContext/RequestContext carry only instrumentation + payload.

Proposed change

Carry an immutable per-call options object on RequestContext, with applyDefaults merge semantics (per-field null-coalescing; nested timeout overlay). Keep the transport SPIs single-method. Model fields non-null with defaults (avoid nullable + !!).

Acceptance

  • Per-call timeout/validation/credential override honoured
  • Transport SPI unchanged
  • Tests + apiDump

Dependencies


Priority: high · Effort: medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsdk-coresdk-core toolkit

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions