1//
2// NullPartHandler.cpp
3//
4// Library: Net
5// Package: Messages
6// Module: NullPartHandler
7//
8// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
9// and Contributors.
10//
11// SPDX-License-Identifier: BSL-1.0
12//
13
14
15#include "Poco/Net/NullPartHandler.h"
16#include "Poco/Net/MessageHeader.h"
17#include "Poco/NullStream.h"
18#include "Poco/StreamCopier.h"
19
20
21using Poco::NullOutputStream;
22using Poco::StreamCopier;
23
24
25namespace Poco {
26namespace Net {
27
28
29NullPartHandler::NullPartHandler()
30{
31}
32
33
34NullPartHandler::~NullPartHandler()
35{
36}
37
38
39void NullPartHandler::handlePart(const MessageHeader& /*header*/, std::istream& stream)
40{
41 NullOutputStream ostr;
42 StreamCopier::copyStream(stream, ostr);
43}
44
45
46} } // namespace Poco::Net
47