mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
				synced 2025-11-04 12:38:02 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			66 lines
		
	
	
		
			1001 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			1001 B
		
	
	
	
		
			C++
		
	
	
	
	
	
//
 | 
						|
// HTTPIOStream.cpp
 | 
						|
//
 | 
						|
// Library: Net
 | 
						|
// Package: HTTP
 | 
						|
// Module:  HTTPIOStream
 | 
						|
//
 | 
						|
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
 | 
						|
// and Contributors.
 | 
						|
//
 | 
						|
// SPDX-License-Identifier:	BSL-1.0
 | 
						|
//
 | 
						|
 | 
						|
 | 
						|
#include "Poco/Net/HTTPIOStream.h"
 | 
						|
#include "Poco/Net/HTTPClientSession.h"
 | 
						|
 | 
						|
 | 
						|
using Poco::UnbufferedStreamBuf;
 | 
						|
 | 
						|
 | 
						|
namespace Poco {
 | 
						|
namespace Net {
 | 
						|
 | 
						|
 | 
						|
HTTPResponseStreamBuf::HTTPResponseStreamBuf(std::istream& istr):
 | 
						|
	_istr(istr)
 | 
						|
{
 | 
						|
	// make sure exceptions from underlying string propagate
 | 
						|
	_istr.exceptions(std::ios::badbit);
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
HTTPResponseStreamBuf::~HTTPResponseStreamBuf()
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
HTTPResponseIOS::HTTPResponseIOS(std::istream& istr):
 | 
						|
	_buf(istr)
 | 
						|
{
 | 
						|
	poco_ios_init(&_buf);
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
HTTPResponseIOS::~HTTPResponseIOS()
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
HTTPResponseStream::HTTPResponseStream(std::istream& istr, HTTPClientSession* pSession):
 | 
						|
	HTTPResponseIOS(istr),
 | 
						|
	std::istream(&_buf),
 | 
						|
	_pSession(pSession)
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
HTTPResponseStream::~HTTPResponseStream()
 | 
						|
{
 | 
						|
	delete _pSession;
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
} } // namespace Poco::Net
 |