URLSearchParams
Types
t
type t = UrlTypes.urlSearchParams = {size: int}Record fields
Values
append
Appends a specified key/value pair as a new search parameter. Read more on MDN
let append: (t, ~name: string, ~value: string) => unitdelete
Deletes the given search parameter, and its associated value, from the list of all search parameters. Read more on MDN
let delete: (t, ~name: string, ~value: string=?) => unitentries
Returns key/value pairs in the same order as they appear in the query string. Read more on MDN
let entries: t => Iterator.t<(string, string)>fromKeyValueArray
let fromKeyValueArray: array<(string, string)> => tget
Returns the first value associated to the given search parameter. Read more on MDN
let get: (t, string) => null<string>getAll
Returns all the values association with a given search parameter. Read more on MDN
let getAll: (t, string) => array<string>has
Returns a Boolean indicating if such a search parameter exists. Read more on MDN
let has: (t, ~name: string, ~value: string=?) => boolkeys
Returns an iterator allowing iteration through all keys contained in this object. Read more on MDN
let keys: t => Iterator.t<string>set
Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. Read more on MDN
let set: (t, ~name: string, ~value: string) => unittoString
Returns the query string suitable for use in a WebApiURL, without the question mark. Read more on MDN
let toString: t => stringvalues
Returns an iterator allowing iteration through all values contained in this object. Read more on MDN
let values: t => Iterator.t<string>