#pragma once #include #include #include #include #include namespace NBus { class TBusWww: public TAtomicRefCount { public: struct TLink { TString Title; TString Href; }; struct TOptionalParams { TVector ParentLinks; }; TBusWww(); ~TBusWww(); void RegisterClientSession(TBusClientSessionPtr); void RegisterServerSession(TBusServerSessionPtr); void RegisterQueue(TBusMessageQueuePtr); void RegisterModule(TBusModule*); void ServeHttp(IOutputStream& httpOutputStream, const TCgiParameters& queryArgs, const TOptionalParams& params = TOptionalParams()); struct TImpl; THolder Impl; }; class TBusWwwHttpServer { public: TBusWwwHttpServer(TIntrusivePtr www, unsigned port); ~TBusWwwHttpServer(); struct TImpl; THolder Impl; }; }