chromium/third_party/blink/renderer/core/url/url_search_params.idl

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://url.spec.whatwg.org/#interface-urlsearchparams

[
    Exposed=(Window,Worker)
] interface URLSearchParams {
    [RaisesException] constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = "");
    readonly attribute unsigned long size;
    void append(USVString name, USVString value);
    [ImplementedAs=deleteAllWithNameOrTuple, CallWith=ExecutionContext] void delete(USVString name, optional USVString value);
    USVString? get(USVString name);
    sequence<USVString> getAll(USVString name);
    [CallWith=ExecutionContext] boolean has(USVString name, optional USVString value);
    void set(USVString name, USVString value);

    void sort();

    iterable<USVString, USVString>;
    stringifier;
};