MCPcopy
hub / github.com/bigskysoftware/htmx / getParameters

Function getParameters

test/util/util.js:103–109  ·  view source on GitHub ↗
(xhr)

Source from the content-addressed store, hash-verified

101}
102
103function getParameters(xhr) {
104 if (getHTTPMethod(xhr) == 'GET') {
105 return parseParams(getQuery(xhr.url))
106 } else {
107 return parseParams(xhr.requestBody)
108 }
109}
110
111function log(val) {
112 console.log(val)

Callers 12

shadowdom.jsFile · 0.50
ajax.jsFile · 0.50
api.jsFile · 0.50
events.jsFile · 0.50
extensions.jsFile · 0.50
hx-boost.jsFile · 0.50
hx-include.jsFile · 0.50
hx-params.jsFile · 0.50
hx-vals.jsFile · 0.50
hx-push-url.jsFile · 0.50
hx-get.jsFile · 0.50
hx-vars.jsFile · 0.50

Calls 3

getHTTPMethodFunction · 0.70
parseParamsFunction · 0.70
getQueryFunction · 0.70

Tested by

no test coverage detected