-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHttpServiceDelegate.cc
More file actions
39 lines (31 loc) · 884 Bytes
/
HttpServiceDelegate.cc
File metadata and controls
39 lines (31 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright (C) 2021 Frank Mertens.
*
* Distribution and use is allowed under the terms of the GNU General Public License version 3
* (see CoreComponents/LICENSE-gpl-3.0).
*
*/
#include <cc/HttpServiceDelegate>
#include <cc/HttpServiceWorkerState>
namespace cc {
const HttpServerConfig &HttpServiceDelegate::State::nodeConfig() const
{
return workerState_->nodeConfig_;
}
const HttpServiceInstance &HttpServiceDelegate::State::serviceInstance() const
{
return workerState_->serviceInstance_;
}
const HttpLoggingServiceInstance &HttpServiceDelegate::State::errorLoggingInstance() const
{
return serviceInstance().errorLoggingInstance();
}
HttpClientConnection &HttpServiceDelegate::State::client()
{
return workerState_->client_;
}
HttpResponseGenerator &HttpServiceDelegate::State::response()
{
return workerState_->response_;
}
} // namespace cc