| 765 | } |
| 766 | |
| 767 | http_pipe* http_request::get_pipe(const char* to_charset) |
| 768 | { |
| 769 | if (to_charset != NULL) { |
| 770 | // ���������ַ���ת���� |
| 771 | set_local_charset(to_charset); |
| 772 | |
| 773 | // ��ȡ�ַ���ת���� |
| 774 | set_charset_conv(); |
| 775 | } |
| 776 | |
| 777 | if (conv_ == NULL) { |
| 778 | return NULL; |
| 779 | } |
| 780 | |
| 781 | http_pipe* hp = NEW http_pipe(); |
| 782 | |
| 783 | // ���ַ���ת�������� http_pipe ���� |
| 784 | hp->set_charset(conv_); |
| 785 | conv_ = NULL; |
| 786 | |
| 787 | return hp; |
| 788 | } |
| 789 | |
| 790 | bool http_request::get_body(xml& out, const char* to_charset /* = NULL */) |
| 791 | { |
nothing calls this directly
no test coverage detected