mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-03 12:28:49 +08:00
30 lines
596 B
C++
30 lines
596 B
C++
#pragma once
|
|
#include "../acl_cpp_define.hpp"
|
|
#include "../stdlib/noncopyable.hpp"
|
|
|
|
namespace acl {
|
|
|
|
class charset_conv;
|
|
class pipe_stream;
|
|
class pipe_manager;
|
|
|
|
class ACL_CPP_API http_pipe : public noncopyable {
|
|
public:
|
|
http_pipe();
|
|
virtual ~http_pipe();
|
|
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();
|
|
|
|
pipe_manager& get_manager();
|
|
|
|
private:
|
|
pipe_manager manager_;
|
|
charset_conv* conv_;
|
|
};
|
|
|
|
} // namespace acl
|