Skip to content

When a second HttpJsonBindingProtocol factory lands: bundle the protocol identity into a record #73

Description

@aaylward

Graduated from #64; condition-triggered, no action until the trigger.

HttpJsonBindingProtocol's identity (name, trait id, error-identity header, status fallback) rides as four positional constructor args today, with the error-header semantics documented separately on each generator half. That's fine with one caller (simpleRestJson()); the moment a second factory (e.g. a restJson1 flavor) is added, introduce a record HttpJsonProtocolIdentity(...) so the facts travel together and the constructor call sites stay readable. Doing it now would be speculative structure — this issue exists so the idea is findable at the right moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions