3 ms·
I think maybe I would prefer HCL. instead of: GET https://example.org/data.tar.gz HTTP/1.0 200 [Asserts] sha256 == hex,039058c6f2c0cb492c
by benatkin 4y ago
I think maybe I would prefer HCL.
instead of:
GET https://example.org/data.tar.gz
HTTP/1.0 200
[Asserts]
sha256 == hex,039058c6f2c0cb492c533b0a4d14ef77cc0f78abccced5287d84a1a2011cfb81;
...this?
get "https://example.org/data.tar.gz" {
sha = "039058c6f2c0cb492c533b0a4d14ef77cc0f78abccced5287d84a1a2011cfb81"
}
Or, having a separate category for asserts:
get "https://example.org/data.tar.gz" {
asserts {
sha = "039058c6f2c0cb492c533b0a4d14ef77cc0f78abccced5287d84a1a2011cfb81"
status = 200
}
}
Or KDL (https://github.com/kdl-org/kdl https://github.com/kdl-org/kdl):
get "https://example.org/data.tar.gz" {
asserts {
sha "039058c6f2c0cb492c533b0a4d14ef77cc0f78abccced5287d84a1a2011cfb81"
status 200
}
}