This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-tfe/plugin/protocol/http/include/internal/http_convert.h
2018-09-28 15:44:17 +08:00

22 lines
838 B
C

#pragma once
#include <tfe_http.h>
#include <http_half.h>
struct hf_content_uncompress;
struct hf_content_compress;
int hf_content_uncompress_write(struct hf_content_uncompress * cv_object,
struct http_half_private * hf_private, tfe_http_event http_ev, const unsigned char * data, size_t datalen);
void hf_content_uncompress_destroy(struct hf_content_uncompress * cv_object);
struct hf_content_uncompress * hf_content_uncompress_create(unsigned int content_encode, hf_private_cb * data_cb,
void * data_cb_user);
struct hf_content_compress * hf_content_compress_create(unsigned int content_encode);
int hf_content_compress_write(struct hf_content_compress * cv_object,
const unsigned char * in_data, size_t sz_in_data, struct evbuffer * out_ev_buf, int end);
void hf_content_compress_destroy(hf_content_compress * cv_object);