Skip to main content

Module nix_http

Module nix_http 

Source

Enums§

RequestType

Constants§

MIME_TYPE_CACHE_INFO
The mime type used for the nix-cache-info file
MIME_TYPE_NAR
The mime type used for NAR files, both compressed and uncompressed
MIME_TYPE_NARINFO
The mime type used for NARInfo files
MIME_TYPE_NAR_LISTING
The mime type used for $outhash.ls files

Functions§

parse_nar_str
Parses a 14cx20k6z4hq508kqi2lm79qfld5f9mf7kiafpqsjs3zlmycza0k.nar.xz string and returns the nixbase32-decoded digest, as well as the compression suffix (which might be empty).
parse_outhash_str
Parses a 3mzh8lvgbynm9daj7c82k2sfsfhrsfsy.narinfo or 3mzh8lvgbynm9daj7c82k2sfsfhrsfsy.ls string and returns the nixbase32-decoded digest, and what was requested.