cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
async_internal.h
Go to the documentation of this file.
1
7#ifndef CWIST_NET_HTTP_ASYNC_INTERNAL_H
8#define CWIST_NET_HTTP_ASYNC_INTERNAL_H
9
10#include <cwist/net/http/http.h>
12#include <stdbool.h>
13#include <stdint.h>
14
15struct cwist_async;
16
19
27
33
42
43/* Dispatch-thread handoff record (async_tls.c). It has no other dependency,
44 * so http.c and the middleware link it on every target, WASM included. */
45
47void cwist_async_record_pending(struct cwist_async *a, const cwist_http_response *res);
48
50void cwist_async_forget_handle(const struct cwist_async *a);
51
61
69
77
78#endif
struct cwist_async cwist_async
Definition async.h:54
void cwist_async_record_pending(struct cwist_async *a, const cwist_http_response *res)
Definition async_tls.c:38
bool cwist_async_https_take_deferred(void)
Definition async.c:97
uint64_t cwist_http_reactor_generation(void)
Return the current reactor generation counter.
Definition http.c:268
bool cwist_async_res_deferred(const cwist_http_response *res)
Definition async_tls.c:71
void cwist_async_forget_response(const cwist_http_response *res)
Definition async_tls.c:50
struct cwist_async * cwist_async_dispatch_take(cwist_http_response *res)
Definition async_tls.c:57
void cwist_http_async_close_orphan(int client_fd, cwist_http_async_conn_t *conn)
Close an async connection whose owning worker pool is gone.
Definition http.c:1453
void cwist_async_forget_handle(const struct cwist_async *a)
bool cwist_http_reactor_post_live(cwist_reactor_t *reactor, uint64_t gen, cwist_reactor_post_t *node)
Post a reactor node only while the captured generation is current.
Definition http.c:283
HTTP Protocol Definitions and Helpers.
size_t cap
Definition otel.c:56
struct cwist_reactor cwist_reactor_t
Definition reactor.h:14
HTTP Response Object. Supports standard string body or Zero-Copy pointer body.
Definition http.h:82
Definition reactor.h:46