feat(users/Profpatsch): add read-http

reads a http request or response from stdin, and parses its headers
into a netencoded record.

Darn rust code took way too long to write.

Change-Id: Ie99faa6d4bbd4996fa4e43fb119a11d85b611c99
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2447
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
This commit is contained in:
Profpatsch 2021-01-27 12:52:38 +01:00
parent f68781da1b
commit 1fb5a17f14
3 changed files with 217 additions and 0 deletions

View file

@ -82,4 +82,11 @@ rec {
sha256 = "0fcknyvknglwwk1pdzdlb4m0ry2dym1yx8r5prf2v00pxnjk0hv2";
};
httparse = pkgs.buildRustCrate {
pname = "httparse";
version = "1.3.4";
crateName = "httparse";
sha256 = "0dggj4s0cq69bn63q9nqzzay5acmwl33nrbhjjsh5xys8sk2x4jw";
};
}