2021-01-27 12:52:38 +01:00
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
# reads a http request (stdin), and writes all headers to stdout, as netencoded dict
|
|
|
|
read-http = depot.users.Profpatsch.writers.rustSimple {
|
|
|
|
name = "read-http";
|
|
|
|
dependencies = [
|
2021-01-29 16:35:02 +01:00
|
|
|
depot.users.Profpatsch.rust-crates.ascii
|
2021-01-27 12:52:38 +01:00
|
|
|
depot.users.Profpatsch.rust-crates.httparse
|
|
|
|
depot.users.Profpatsch.netencode.netencode-rs
|
|
|
|
depot.users.Profpatsch.arglib.netencode.rust
|
2021-01-31 16:38:21 +01:00
|
|
|
depot.users.Profpatsch.execline.exec-helpers
|
2021-01-27 12:52:38 +01:00
|
|
|
];
|
|
|
|
} (builtins.readFile ./read-http.rs);
|
|
|
|
|
2021-01-31 16:38:21 +01:00
|
|
|
in read-http
|