CProxy/cproxy_request.h
aixiao a2f0dc3992 修改: Makefile
修改:     conf.h
	修改:     conf/cproxy.ini
	新文件:   conf/cproxy.ini.explain
	修改:     cproxy.c
	修改:     cproxy.h
	修改:     cproxy_help.h
	修改:     cproxy_request.c
	修改:     cproxy_request.h
2019-02-16 17:28:47 +08:00

24 lines
884 B
C

#ifndef CPROXY_REQUEST_H
#define CPROXY_REQUEST_H
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <regex.h>
#include "cproxy.h"
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);
void del_chr(char *s, char ch);
char *strncpy_(char *dest, const char *src, size_t n);
uint8_t request_type(char *req);
int extract_host(char *header);
void forward_header(int destination_sock);
void rewrite_header();
int numbin(int n);
char *splice_head(char *header_buffer, const char *character, char *string);
char *delete_header(char *header_buffer, const char *character, int string);
int replacement_http_head(char *header_buffer, char *remote_host, int *remote_port, int *SIGN, conf *p);
#endif