@@ -20,13 +20,13 @@ TS3Mock::TSettings::TSettings()
20
20
}
21
21
22
22
TS3Mock::TSettings::TSettings (ui16 port)
23
- : HttpOptions(TOptions(port).SetThreads(1 ))
23
+ : HttpOptions(THttpServer:: TOptions(port).SetThreads(1 ))
24
24
, CorruptETags(false )
25
25
, RejectUploadParts(false )
26
26
{
27
27
}
28
28
29
- TS3Mock::TSettings& TS3Mock::TSettings::WithHttpOptions (const TOptions& opts) {
29
+ TS3Mock::TSettings& TS3Mock::TSettings::WithHttpOptions (const THttpServer:: TOptions& opts) {
30
30
HttpOptions = opts;
31
31
return *this ;
32
32
}
@@ -388,23 +388,27 @@ bool TS3Mock::TRequest::DoReply(const TReplyParams& params) {
388
388
}
389
389
}
390
390
391
+ bool TS3Mock::Start () {
392
+ return HttpServer.Start ();
393
+ }
394
+
391
395
TS3Mock::TS3Mock (const TSettings& settings)
392
- : THttpServer( this , settings.HttpOptions )
393
- , Settings( settings)
396
+ : Settings( settings)
397
+ , HttpServer( this , settings.HttpOptions )
394
398
{
395
399
}
396
400
397
401
TS3Mock::TS3Mock (THashMap<TString, TString>&& data, const TSettings& settings)
398
- : THttpServer(this , settings.HttpOptions)
399
- , Settings(settings)
402
+ : Settings(settings)
400
403
, Data(std::move(data))
404
+ , HttpServer(this , settings.HttpOptions)
401
405
{
402
406
}
403
407
404
408
TS3Mock::TS3Mock (const THashMap<TString, TString>& data, const TSettings& settings)
405
- : THttpServer(this , settings.HttpOptions)
406
- , Settings(settings)
409
+ : Settings(settings)
407
410
, Data(data)
411
+ , HttpServer(this , settings.HttpOptions)
408
412
{
409
413
}
410
414
0 commit comments