|
balde
master
A microframework for C based on GLib.
|
An example with HTTP cookies.
{
return rv;
}
int
main(int argc, char **argv)
{
return 0;
}
void balde_app_add_url_rule(balde_app_t *app, const gchar *endpoint, const gchar *rule, const balde_http_method_t method, balde_view_func_t view_func)
Adds a view to the balde application.
void balde_response_set_cookie(balde_response_t *response, const gchar *name, const gchar *value, const gint max_age, const gint64 expires, const gchar *path, const gchar *domain, const gboolean secure, const gboolean http_only)
Sets a cookie.
balde HTTP request context
Definition: balde.h:212
balde HTTP response context
Definition: balde.h:268
void balde_app_free(balde_app_t *app)
Free application context memory.
const gchar * balde_request_get_cookie(balde_request_t *request, const gchar *name)
Gets a cookie.
void balde_app_run(balde_app_t *app, gint argc, gchar **argv)
Application main loop.
balde_app_t * balde_app_init(void)
Initializes the application context.
balde_response_t * balde_make_response(const gchar *content)
Initialize a response context.
balde application context
Definition: balde.h:122