22 lines
838 B
C
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);
|