Skip to content

Replace error-returning builders with typestate-based buildersΒ #330

@davidbarsky

Description

@davidbarsky

It'd be really handy to replace the current builders with a set of builders for Request, Response, and URI that track the builder's state using some sort of typestate, allowing for compile-time checks that a Request/Response/URI were correctly built.

(Following up from Twitter: https://twitter.com/seanmonstar/status/1149772057212669952)

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-rfcBlocked: request for comments. More discussion would help move this along.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions