| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "cockpitwebserver.h" |
| 5 |
|
| 6 |
struct _CockpitWebRequest { |
| 7 |
int state; |
| 8 |
GIOStream *io; |
| 9 |
GByteArray *buffer; |
| 10 |
gint delayed_reply; |
| 11 |
CockpitWebServer *web_server; |
| 12 |
gboolean eof_okay; |
| 13 |
GSource *source; |
| 14 |
GSource *timeout; |
| 15 |
gboolean check_tls_redirect; |
| 16 |
|
| 17 |
GHashTable *headers; |
| 18 |
const gchar *original_path; |
| 19 |
const gchar *path; |
| 20 |
const gchar *host; |
| 21 |
const gchar *query; |
| 22 |
const gchar *method; |
| 23 |
}; |
| 24 |
|
| 25 |
#define WebRequest(...) (&(CockpitWebRequest) {__VA_ARGS__}) |