summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2021-07-08 00:52:22 +0200
committerHartmut Goebel <h.goebel@crazy-compilers.com>2021-07-16 19:48:24 +0200
commit3ee0f170c8bd883728d8abb2c2e00f445c13f17d (patch)
treeb1b57ec5f8b4f123cbfab27278668318565001d1 /gnu/packages
parentccdf7b8006bd5173cd8ff7d2fe732fc171d38f5d (diff)
ci: Properly construct URLs.
Implement a new function "api-url", which constructs URLs using relative URI and "resolve-uri-reference" (which implements the algorithm specified in RFC 3986 section 5.2.2) for building the URL, instead of just appending strings. This avoids issued if the server-url ends with a slash. Since "api-url" uses URI-objects, it makes sense to also construct the query-part of the URL here. For this "api-url" accepts optional key-value-pairs. New function "json-api-fetch" is a wrapper using "api-url". * guix/ci.scm (api-url): New function. (build): Use it. (json-api-fetch): New function. (queued-builds, latest-builds, evaluation, latest-evaluations, evaluation-jobs: Use it.
Diffstat (limited to 'gnu/packages')
0 files changed, 0 insertions, 0 deletions