@@ -20,13 +20,13 @@ TS3Mock::TSettings::TSettings()
2020}
2121
2222TS3Mock::TSettings::TSettings (ui16 port)
23- : HttpOptions(TOptions(port).SetThreads(1 ))
23+ : HttpOptions(THttpServer:: TOptions(port).SetThreads(1 ))
2424 , CorruptETags(false )
2525 , RejectUploadParts(false )
2626{
2727}
2828
29- TS3Mock::TSettings& TS3Mock::TSettings::WithHttpOptions (const TOptions& opts) {
29+ TS3Mock::TSettings& TS3Mock::TSettings::WithHttpOptions (const THttpServer:: TOptions& opts) {
3030 HttpOptions = opts;
3131 return *this ;
3232}
@@ -388,23 +388,27 @@ bool TS3Mock::TRequest::DoReply(const TReplyParams& params) {
388388 }
389389}
390390
391+ bool TS3Mock::Start () {
392+ return HttpServer.Start ();
393+ }
394+
391395TS3Mock::TS3Mock (const TSettings& settings)
392- : THttpServer( this , settings.HttpOptions )
393- , Settings( settings)
396+ : Settings( settings)
397+ , HttpServer( this , settings.HttpOptions )
394398{
395399}
396400
397401TS3Mock::TS3Mock (THashMap<TString, TString>&& data, const TSettings& settings)
398- : THttpServer(this , settings.HttpOptions)
399- , Settings(settings)
402+ : Settings(settings)
400403 , Data(std::move(data))
404+ , HttpServer(this , settings.HttpOptions)
401405{
402406}
403407
404408TS3Mock::TS3Mock (const THashMap<TString, TString>& data, const TSettings& settings)
405- : THttpServer(this , settings.HttpOptions)
406- , Settings(settings)
409+ : Settings(settings)
407410 , Data(data)
411+ , HttpServer(this , settings.HttpOptions)
408412{
409413}
410414
0 commit comments