5#ifndef PT_HTTP_STREAMSESSION_H
6#define PT_HTTP_STREAMSESSION_H
8#include <Pt/Http/Api.h>
9#include <Pt/NonCopyable.h>
61 {
return _stream != 0; }
99 void closeStream(
Stream& stream);
bool isOpen() const
Returns true when a stream is bound.
Definition StreamSession.h:60
Stream * stream() const
Returns the bound stream, or null.
Definition StreamSession.h:95
StreamSession()
Creates a session with no stream.
virtual void onCloseStream(Stream &stream)
Called when the stream ends.
void close()
Unbinds and closes the stream.
void open(Stream &stream)
Binds stream.
StreamSession(Stream &stream)
Creates a session bound to stream.
~StreamSession()
Unbinds and closes the stream.
One HTTP stream on a connection.
Definition Stream.h:90
NonCopyable()
Default constructor.
Definition NonCopyable.h:63
HTTP clients and servers.
Core module.
Definition Allocator.h:33