chore(http): rename step to http_step

This commit is contained in:
Jef Roosens 2023-11-03 15:02:03 +01:00
parent 72fae76ef6
commit eb9157281b
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
3 changed files with 6 additions and 6 deletions

View file

@ -32,9 +32,9 @@ typedef enum http_route_type {
* before the step can finish its processing. For response steps, `false` means
* there's new data in the write buffer that needs to be written.
*/
typedef bool (*step)(event_loop_conn *conn);
typedef bool (*http_step)(event_loop_conn *conn);
extern const step http_default_res_steps[HTTP_LOOP_MAX_STEPS];
extern const http_step http_default_res_steps[HTTP_LOOP_MAX_STEPS];
/**
* Struct describing a route a request can take.
@ -46,8 +46,8 @@ typedef struct http_route {
// Compiled regex for a regex route. This value gets set at runtime when
// starting the http loop
regex_t *regex;
step steps[HTTP_LOOP_MAX_STEPS];
step steps_res[HTTP_LOOP_MAX_STEPS];
const http_step steps[HTTP_LOOP_MAX_STEPS];
const http_step steps_res[HTTP_LOOP_MAX_STEPS];
} http_route;
/**