Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python3: Make pooled threads start exit when wait-pool is large for some time.
[ashd.git]
/
lib
/
req.h
diff --git
a/lib/req.h
b/lib/req.h
index
942ff35
..
054d3c1
100644
(file)
--- a/
lib/req.h
+++ b/
lib/req.h
@@
-1,6
+1,8
@@
#ifndef _LIB_HTREQ_H
#define _LIB_HTREQ_H
#ifndef _LIB_HTREQ_H
#define _LIB_HTREQ_H
+#include <stdio.h>
+
struct hthead {
char *method, *url, *ver, *msg;
int code;
struct hthead {
char *method, *url, *ver, *msg;
int code;
@@
-15,8
+17,14
@@
void freehthead(struct hthead *head);
char *getheader(struct hthead *head, char *name);
void headpreheader(struct hthead *head, const char *name, const char *val);
void headappheader(struct hthead *head, const char *name, const char *val);
char *getheader(struct hthead *head, char *name);
void headpreheader(struct hthead *head, const char *name, const char *val);
void headappheader(struct hthead *head, const char *name, const char *val);
-int sendreq(int sock, struct hthead *req);
+void headrmheader(struct hthead *head, const char *name);
+int sendreq2(int sock, struct hthead *req, int fd, int flags);
+int sendreq(int sock, struct hthead *req, int fd);
int recvreq(int sock, struct hthead **reqp);
void replrest(struct hthead *head, char *rest);
int recvreq(int sock, struct hthead **reqp);
void replrest(struct hthead *head, char *rest);
+int parseheaders(struct hthead *head, FILE *in);
+struct hthead *parseresponse(FILE *in);
+int writeresp(FILE *out, struct hthead *resp);
+char *unquoteurl(char *in);
#endif
#endif