cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
flash.h
Go to the documentation of this file.
1
6#ifndef __CWIST_FLASH_H__
7#define __CWIST_FLASH_H__
8
10
14void cwist_flash_set(cwist_http_request *req, const char *key, const char *value);
15
20const char *cwist_flash_get(cwist_http_request *req, const char *key);
21
26const char *cwist_flash_peek(cwist_http_request *req, const char *key);
27
34
35#endif
char * cwist_flash_pop_all_json(cwist_http_request *req)
Serialize all flash messages to a JSON object string. Caller must free the returned string.
Definition flash.c:87
const char * cwist_flash_get(cwist_http_request *req, const char *key)
Get a flash message and consume it (one-time read).
Definition flash.c:55
void cwist_flash_set(cwist_http_request *req, const char *key, const char *value)
Set a flash message on the request.
Definition flash.c:20
const char * cwist_flash_peek(cwist_http_request *req, const char *key)
Peek at a flash message without consuming it.
Definition flash.c:39
HTTP Protocol Definitions and Helpers.