acl/lib_acl_cpp/include/acl_cpp/http/http_pipe.hpp
2014-11-19 00:25:21 +08:00

30 lines
591 B
C++

#pragma once
#include "acl_cpp/acl_cpp_define.hpp"
#include "acl_cpp/stdlib/pipe_stream.hpp"
namespace acl {
class charset_conv;
class pipe_stream;
class ACL_CPP_API http_pipe
{
public:
http_pipe(void);
virtual ~http_pipe(void);
void set_charset(charset_conv* conv);
bool set_charset(const char* from, const char* to);
void append(pipe_stream* ps);
void reset();
bool update(const char* in, size_t len);
bool update_end(void);
pipe_manager& get_manager(void);
protected:
private:
pipe_manager manager_;
charset_conv* conv_;
};
} // namespace acl