2019-07-28 10:31:56 +08:00
|
|
|
#pragma once
|
2017-06-02 14:47:24 +08:00
|
|
|
#include "../acl_cpp_define.hpp"
|
2019-05-09 13:57:51 +08:00
|
|
|
#include "../stdlib/noncopyable.hpp"
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
|
|
namespace acl {
|
|
|
|
|
|
|
|
class charset_conv;
|
|
|
|
class pipe_stream;
|
2019-05-09 13:57:51 +08:00
|
|
|
class pipe_manager;
|
2014-11-19 00:25:21 +08:00
|
|
|
|
2019-05-09 13:57:51 +08:00
|
|
|
class ACL_CPP_API http_pipe : public noncopyable
|
2014-11-19 00:25:21 +08:00
|
|
|
{
|
|
|
|
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
|