rastrillo / fiesta Public

Clone
git clone https://amadan.net/rastrillo/fiesta

Plain git — no account needed to clone.

Download

Download this file

1package site
2
3// HeadersWith is a _headers file of one path setting one header, put
4// through the check Build's own rules pass, so a test can hand it a
5// header Build never writes.
6func HeadersWith(path, name, value string) ([]byte, error) {
7 return headersFile([]headerGroup{{paths: []string{path}, headers: []header{{name, value}}}})
8}
9