(rontolisp) docs
← Functions

rontolisp:query-param

(rontolisp:query-param query name)

Returns the url-decoded value of the first name match in a query string, or nil when the name does not appear. query may be nil (the result is then nil too), so the one-liner (rontolisp:query-param (getf request :query) "name") works unchanged for requests without a query string inside an rontolisp:http-handler handler.

Backend support

Works on every backend and in every WASM mode (Preview 1 included): the library is written in rontolisp itself and is compiled into the program when used. To read all parameters at once use rontolisp:query-params.