SMACC2
Loading...
Searching...
No Matches
cl_http.cpp
Go to the documentation of this file.
1// Copyright 2023 RobosoftAI Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15/*****************************************************************************************************************
16 *
17 * Authors: Jaycee Lock & Brett Aldrich
18 *
19 ******************************************************************************************************************/
20
21#include <cl_http/cl_http.hpp>
22
23namespace cl_http
24{
25ClHttp::ClHttp(const std::string & server_name, const int & /*timeout*/)
26: initialized_{false},
27 server_url_{server_name},
28 connectionManager_{nullptr},
29 sessionManager_{nullptr},
30 requestExecutor_{nullptr}
31{
32 // Timeout parameter kept for API compatibility but unused (managed by components)
33}
34
36{
37 // Thread cleanup handled by CpHttpConnectionManager destructor
38}
39
41{
42 // Components created in onComponentInitialization()
43 this->initialized_ = true;
44}
45} // namespace cl_http
ClHttp(const std::string &server, const int &timeout=1500)
Definition cl_http.cpp:25
void onInitialize() override
Definition cl_http.cpp:40
virtual ~ClHttp()
Definition cl_http.cpp:35