Skip to content

Use builder pattern with RequestInit #22427

@jdm

Description

@jdm

If RequestInit::new accepts all of the mandatory arguments and then the builder pattern is used for customizable options, the resulting code might be easier to match against specification text like https://html.spec.whatwg.org/multipage/media.html#media-elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domInteracting with the DOM from web contentA-networkC-assignedThere is someone working on resolving the issueE-candidate-for-mentoringI-cleanupNo impact; the issue is one of maintainability or tidiness.I-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions