|
Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
|
Builds the argv vector used to launch an app entrypoint for an incoming HTTP request. More...
Go to the source code of this file.
Functions | |
| static int | push_argv_value (char *argv_list[], size_t argv_capacity, size_t *argc_io, char *value) |
| int | build_native_app_request_argv (const AppRuntime *app, const char *request_method, const char *request_target, const char *request_cookie, const char *request_headers, const char *request_content_type, const char *request_body, int request_is_multipart, const char *temp_body_path, char *argv_list[], size_t argv_capacity, size_t *argc_out) |
| Builds the argv vector used to execute one compiled app request. | |
Builds the argv vector used to launch an app entrypoint for an incoming HTTP request.
Definition in file native_spawn_argv.c.
| int build_native_app_request_argv | ( | const AppRuntime * | app, |
| const char * | request_method, | ||
| const char * | request_target, | ||
| const char * | request_cookie, | ||
| const char * | request_headers, | ||
| const char * | request_content_type, | ||
| const char * | request_body, | ||
| int | request_is_multipart, | ||
| const char * | temp_body_path, | ||
| char * | argv_list[], | ||
| size_t | argv_capacity, | ||
| size_t * | argc_out ) |
Builds the argv vector used to execute one compiled app request.
| app | Finalized app runtime that will handle the request. |
| request_method | HTTP request method. |
| request_target | HTTP request target. |
| request_cookie | Cookie header value. |
| request_headers | Normalized request headers. |
| request_content_type | Request content type. |
| request_body | Request body text when passed inline. |
| request_is_multipart | Non-zero when the request uses multipart form data. |
| temp_body_path | Optional temporary body file path for multipart requests. |
| argv_list | Destination argv array to populate. |
| argv_capacity | Capacity of argv_list in entries. |
| argc_out | Destination for the populated argv length. |
Definition at line 22 of file native_spawn_argv.c.
References AppRuntime::base_path, AppRuntime::build_dir, AppRuntime::compiled_entrypoint, AppRuntime::debug, AppRuntime::log_path, push_argv_value(), and AppRuntime::state_path.
Referenced by spawn_app_request().
|
static |
Definition at line 10 of file native_spawn_argv.c.
Referenced by build_native_app_request_argv().