about summary refs log blame commit diff
path: root/users/Profpatsch/read-http.nix
blob: aff1fa8662e17551217f4b38a6257a059590654d (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                                      
                                              


                                                   
                                                  


                                       
            
{ 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 = [
      depot.users.Profpatsch.rust-crates.ascii
      depot.users.Profpatsch.rust-crates.httparse
      depot.users.Profpatsch.netencode.netencode-rs
      depot.users.Profpatsch.arglib.netencode.rust
      depot.users.Profpatsch.execline.exec-helpers
    ];
  } (builtins.readFile ./read-http.rs);

in read-http