+void replrest(struct hthead *head, char *rest);
+int parseheaders(struct hthead *head, FILE *in);
+int parseheadersb(struct hthead *head, struct bufio *in);
+struct hthead *parseresponse(FILE *in);
+struct hthead *parseresponseb(struct bufio *in);
+int writeresp(FILE *out, struct hthead *resp);
+int writerespb(struct bufio *out, struct hthead *resp);
+char *unquoteurl(char *in);