/* Move remain part of the buffer to the start position in the buffer.  */
void _http_client_move_buffer(struct http_client_module *const module, char *base)
/* Move remain part of the buffer to the start position in the buffer.  */
void _http_client_move_buffer(struct http_client_module *const module, char *base)
{
	char *buffer = module->config.recv_buffer;
	int remain = (int)module->recved_size - (int)base + (int)buffer;
	if (remain > 0) {
		memmove(buffer, base, remain);
		module->recved_size = remain;
	} else {
		module->recved_size = 0;
	}
}