MCPcopy Create free account
hub / github.com/massCodeIO/massCode / combineUrl

Function combineUrl

src/renderer/composables/spaces/http/urlQuery.ts:22–30  ·  view source on GitHub ↗
(parts: {
  path: string
  query: string
  fragment: string
})

Source from the content-addressed store, hash-verified

20}
21
22function combineUrl(parts: {
23 path: string
24 query: string
25 fragment: string
26}): string {
27 return (
28 parts.path + (parts.query ? `?${parts.query}` : '') + (parts.fragment || '')
29 )
30}
31
32function parseQueryString(qs: string): Array<{ key: string, value: string }> {
33 if (!qs)

Callers 2

applyQueryToUrlFunction · 0.85
stripQueryFromUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected