#include <HttpRuntime.h>
Public 类型 | |
| enum class | SubmitStatus { Accepted , Closed , Unavailable } |
| enum class | PollStatus { Pending , Ready , Closed } |
| enum class | DeliveryStatus { Ready , Retired } |
Public 成员函数 | |
| HttpRuntime ()=default | |
| Initializes the module-owned executor and SSL lifetime. | |
| ~HttpRuntime () | |
| Joins remaining jobs after canceling undelivered results. | |
| HttpPolicy | policy () const |
| Copies the authoritative policy for one submission. | |
| void | setTimeout (int ms) |
| Changes the default I/O timeout. | |
| int | timeout () const |
| Returns the default I/O timeout. | |
| void | setVerifySsl (bool verify) |
| Changes default certificate verification for subsequent jobs. | |
| bool | getVerifySsl () const |
| Returns default certificate verification. | |
| void | setCaLocation (std::string location) |
| Owns a custom CA path for subsequent jobs. | |
| bool | isClosed () const |
| Reports whether the owning module has shut down. | |
| SubmitStatus | submit (void *origin, HttpOptions options) |
| Starts an owning snapshot without retaining the handle. @ownership Origin is borrowed identity, canceled by its owner's destructor. @lifetime The runtime joins all jobs before releasing its SSL initializer. @cost Creates a thread and performs network I/O per submission. | |
| PollStatus | take (void *origin, HttpResult &result) |
| Takes only this origin's next ready result. @ownership Origin is a borrowed identity; result transfers its owned payload. | |
| void | drain (std::vector< HttpResult > &out) |
| Transfers ready, still-live results without invoking callbacks. @cost Scans pending requests once per pump; completed payloads are moved. | |
| DeliveryStatus | prepareDelivery (HttpResult &result) |
| Rechecks lifetime immediately before queuing an event, after any reentrant callbacks. | |
| void | cancel (void *origin) |
| Retires all jobs for the borrowed origin without blocking its destructor. @ownership Origin is identity only and is never dereferenced. | |
| void | close () |
| Cancels all origins, then joins jobs without holding the registry lock. @cost Waits for in-flight I/O during module shutdown; never called per frame. | |
详细描述
在文件 HttpRuntime.h 第 39 行定义.
成员枚举类型说明
◆ DeliveryStatus
|
strong |
| 枚举值 | |
|---|---|
| Ready | |
| Retired | |
在文件 HttpRuntime.h 第 43 行定义.
◆ PollStatus
|
strong |
| 枚举值 | |
|---|---|
| Pending | |
| Ready | |
| Closed | |
在文件 HttpRuntime.h 第 42 行定义.
◆ SubmitStatus
|
strong |
| 枚举值 | |
|---|---|
| Accepted | |
| Closed | |
| Unavailable | |
在文件 HttpRuntime.h 第 41 行定义.
构造及析构函数说明
◆ HttpRuntime()
|
default |
◆ ~HttpRuntime()
| eve::network::HttpRuntime::~HttpRuntime | ( | ) |
Joins remaining jobs after canceling undelivered results.
在文件 HttpRequest.cpp 第 145 行定义.
引用了 close().
成员函数说明
◆ cancel()
| void eve::network::HttpRuntime::cancel | ( | void * | origin | ) |
Retires all jobs for the borrowed origin without blocking its destructor. @ownership Origin is identity only and is never dereferenced.
在文件 HttpRequest.cpp 第 230 行定义.
引用了 origin.
◆ close()
| void eve::network::HttpRuntime::close | ( | ) |
Cancels all origins, then joins jobs without holding the registry lock. @cost Waits for in-flight I/O during module shutdown; never called per frame.
在文件 HttpRequest.cpp 第 239 行定义.
引用了 lifetime, origin , 以及 pending.
被这些函数引用 ~HttpRuntime().
◆ drain()
| void eve::network::HttpRuntime::drain | ( | std::vector< HttpResult > & | out | ) |
Transfers ready, still-live results without invoking callbacks. @cost Scans pending requests once per pump; completed payloads are moved.
在文件 HttpRequest.cpp 第 207 行定义.
◆ getVerifySsl()
| bool eve::network::HttpRuntime::getVerifySsl | ( | ) | const |
Returns default certificate verification.
在文件 HttpRequest.cpp 第 162 行定义.
◆ isClosed()
| bool eve::network::HttpRuntime::isClosed | ( | ) | const |
Reports whether the owning module has shut down.
在文件 HttpRequest.cpp 第 170 行定义.
◆ policy()
| HttpPolicy eve::network::HttpRuntime::policy | ( | ) | const |
Copies the authoritative policy for one submission.
在文件 HttpRequest.cpp 第 146 行定义.
◆ prepareDelivery()
| HttpRuntime::DeliveryStatus eve::network::HttpRuntime::prepareDelivery | ( | HttpResult & | result | ) |
Rechecks lifetime immediately before queuing an event, after any reentrant callbacks.
在文件 HttpRequest.cpp 第 223 行定义.
◆ setCaLocation()
| void eve::network::HttpRuntime::setCaLocation | ( | std::string | location | ) |
Owns a custom CA path for subsequent jobs.
在文件 HttpRequest.cpp 第 166 行定义.
◆ setTimeout()
| void eve::network::HttpRuntime::setTimeout | ( | int | ms | ) |
Changes the default I/O timeout.
在文件 HttpRequest.cpp 第 150 行定义.
◆ setVerifySsl()
| void eve::network::HttpRuntime::setVerifySsl | ( | bool | verify | ) |
Changes default certificate verification for subsequent jobs.
在文件 HttpRequest.cpp 第 158 行定义.
◆ submit()
| HttpRuntime::SubmitStatus eve::network::HttpRuntime::submit | ( | void * | origin, |
| HttpOptions | options | ||
| ) |
Starts an owning snapshot without retaining the handle. @ownership Origin is borrowed identity, canceled by its owner's destructor. @lifetime The runtime joins all jobs before releasing its SSL initializer. @cost Creates a thread and performs network I/O per submission.
在文件 HttpRequest.cpp 第 175 行定义.
引用了 Accepted, Closed, lifetime, options, origin, snapshot , 以及 Unavailable.
◆ take()
| HttpRuntime::PollStatus eve::network::HttpRuntime::take | ( | void * | origin, |
| HttpResult & | result | ||
| ) |
◆ timeout()
| int eve::network::HttpRuntime::timeout | ( | ) | const |
Returns the default I/O timeout.
在文件 HttpRequest.cpp 第 154 行定义.
该类的文档由以下文件生成:
- src/modules/network/detail/HttpRuntime.h
- src/modules/network/HttpRequest.cpp