Mercurial
comparison third_party/wrk/src/script.h @ 186:8cf4ec5e2191 hg-web
Fixed merge conflict.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 23 Jan 2026 22:38:59 -0800 |
| parents | 94705b5986b3 |
| children |
comparison
equal
deleted
inserted
replaced
| 176:fed99fc04e12 | 186:8cf4ec5e2191 |
|---|---|
| 1 #ifndef SCRIPT_H | |
| 2 #define SCRIPT_H | |
| 3 | |
| 4 #include <stdbool.h> | |
| 5 #include <lua.h> | |
| 6 #include <lualib.h> | |
| 7 #include <lauxlib.h> | |
| 8 #include <unistd.h> | |
| 9 #include "stats.h" | |
| 10 #include "wrk.h" | |
| 11 | |
| 12 lua_State *script_create(char *, char *, char **); | |
| 13 | |
| 14 bool script_resolve(lua_State *, char *, char *); | |
| 15 void script_setup(lua_State *, thread *); | |
| 16 void script_done(lua_State *, stats *, stats *); | |
| 17 | |
| 18 void script_init(lua_State *, thread *, int, char **); | |
| 19 uint64_t script_delay(lua_State *); | |
| 20 void script_request(lua_State *, char **, size_t *); | |
| 21 void script_response(lua_State *, int, buffer *, buffer *); | |
| 22 size_t script_verify_request(lua_State *L); | |
| 23 | |
| 24 bool script_is_static(lua_State *); | |
| 25 bool script_want_response(lua_State *L); | |
| 26 bool script_has_delay(lua_State *L); | |
| 27 bool script_has_done(lua_State *L); | |
| 28 void script_summary(lua_State *, uint64_t, uint64_t, uint64_t); | |
| 29 void script_errors(lua_State *, errors *); | |
| 30 | |
| 31 void script_copy_value(lua_State *, lua_State *, int); | |
| 32 int script_parse_url(char *, struct http_parser_url *); | |
| 33 | |
| 34 void buffer_append(buffer *, const char *, size_t); | |
| 35 void buffer_reset(buffer *); | |
| 36 char *buffer_pushlstring(lua_State *, char *); | |
| 37 | |
| 38 #endif /* SCRIPT_H */ |