|
SW Task Event Loop Framework v1.0.0
High-performance C++ asynchronous event loop framework with timer management and promise-based programming
|
#include <HttpService.h>

Public Types | |
| using | RequestId = std::uint64_t |
Public Member Functions | |
| HttpService () | |
| ~HttpService () | |
| RequestId | submit (HttpRequest req) |
| bool | cancel (RequestId id) |
| void | setMaxConcurrent (std::size_t n) |
| std::size_t | pending () const |
| std::size_t | activeCount () const |
| std::size_t | queuedCount () const |
| void | shutdown () |
Definition at line 65 of file HttpService.h.
| using sw_task::net::HttpService::RequestId = std::uint64_t |
Definition at line 67 of file HttpService.h.
| sw_task::net::HttpService::HttpService | ( | ) |
Definition at line 7 of file HttpService.cpp.
| sw_task::net::HttpService::~HttpService | ( | ) |
Definition at line 13 of file HttpService.cpp.
References shutdown().

| std::size_t sw_task::net::HttpService::activeCount | ( | ) | const |
Definition at line 74 of file HttpService.cpp.
| bool sw_task::net::HttpService::cancel | ( | RequestId | id | ) |
Definition at line 49 of file HttpService.cpp.
| std::size_t sw_task::net::HttpService::pending | ( | ) | const |
Definition at line 69 of file HttpService.cpp.
| std::size_t sw_task::net::HttpService::queuedCount | ( | ) | const |
Definition at line 79 of file HttpService.cpp.
| void sw_task::net::HttpService::setMaxConcurrent | ( | std::size_t | n | ) |
Definition at line 65 of file HttpService.cpp.
| void sw_task::net::HttpService::shutdown | ( | ) |
Definition at line 30 of file HttpService.cpp.
Referenced by ~HttpService().

| HttpService::RequestId sw_task::net::HttpService::submit | ( | HttpRequest | req | ) |
Definition at line 37 of file HttpService.cpp.