-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Use builder pattern with RequestInit #22427
Copy link
Copy link
Closed
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentA-networkC-assignedThere is someone working on resolving the issueThere is someone working on resolving the issueE-candidate-for-mentoringI-cleanupNo impact; the issue is one of maintainability or tidiness.No impact; the issue is one of maintainability or tidiness.I-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.No impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.
Metadata
Metadata
Assignees
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentA-networkC-assignedThere is someone working on resolving the issueThere is someone working on resolving the issueE-candidate-for-mentoringI-cleanupNo impact; the issue is one of maintainability or tidiness.No impact; the issue is one of maintainability or tidiness.I-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.No impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.
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.