Bug 228029 - Extend the URL class with an accessor for Query Parameters
Summary: Extend the URL class with an accessor for Query Parameters
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-07-16 10:51 PDT by Brent Fulgham
Modified: 2021-07-16 10:53 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2021-07-16 10:51:41 PDT
We currently have the ability to retrieve the full Query String from a URL. It would be convenient to be able to iterate over the set of query parameter key/value pairs.

Extend the URL class with a new method similar to the following:

struct QueryParameter {
    StringView key;
    StringView value;
};

Vector<QueryParameters> URL::queryParameters() const;
Comment 1 Radar WebKit Bug Importer 2021-07-16 10:53:09 PDT
<rdar://problem/80692809>