Skip to main content

serve

Function serve 

Source
pub fn serve<'a>(
    store: &'a impl Store,
    method: &str,
    target: &'a str,
    scratch: &'a mut [u8],
) -> Result<Response<'a>, BufferTooSmall>
Expand description

Serve GET/HEAD and OPTIONS from a read-only registry. Pagination accepts nonnegative n and a percent-encoded last cursor (maximum 256 decoded bytes). n=0 returns an empty page without a continuation link. Unknown query parameters are ignored. Malformed known parameters return 400. Listings are lexically sorted even if the store’s names are unsorted.