CProxy/http_request.h
2020-07-30 18:10:31 +08:00

21 lines
521 B
C

#ifndef REQUEST_H
#define REQUEST_H
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <regex.h>
#include "http_proxy.h"
#include "conf.h"
struct http_request {
char *M, *U, *V;
int M_len, U_len, V_len;
};
void *memmem(const void *haystack, size_t haystacklen, const void *needle, size_t needlelen);
char *replace(char *replace_memory, int *replace_memory_len, const char *src, const int src_len, const char *dest, const int dest_len);
char *request_head(conn * in, conf * configure);
#endif