Added two new stack disciplines to LuaStack
This commit is contained in:
@@ -87,17 +87,17 @@ public:
|
||||
void set_mime_type(const eng::string &mime_type);
|
||||
void set_content(const eng::string &content);
|
||||
|
||||
void set_verify_certificate(LuaStack &LS, LuaSlot val);
|
||||
void set_method(LuaStack &LS, LuaSlot val);
|
||||
void set_host(LuaStack &LS, LuaSlot val);
|
||||
void set_port(LuaStack &LS, LuaSlot val);
|
||||
void set_path(LuaStack &LS, LuaSlot path);
|
||||
void set_param(LuaStack &LS, LuaSlot key, LuaSlot val);
|
||||
void set_params(LuaStack &LS, LuaSlot tab);
|
||||
void set_url(LuaStack &LS, LuaSlot val);
|
||||
void set_mime_type(LuaStack &LS, LuaSlot val);
|
||||
void set_content(LuaStack &LS, LuaSlot val);
|
||||
void set_jsonvalue(LuaStack &LS, LuaSlot val);
|
||||
void set_verify_certificate(LuaCoreStack &LS, LuaSlot val);
|
||||
void set_method(LuaCoreStack &LS, LuaSlot val);
|
||||
void set_host(LuaCoreStack &LS, LuaSlot val);
|
||||
void set_port(LuaCoreStack &LS, LuaSlot val);
|
||||
void set_path(LuaCoreStack &LS, LuaSlot path);
|
||||
void set_param(LuaCoreStack &LS, LuaSlot key, LuaSlot val);
|
||||
void set_params(LuaCoreStack &LS, LuaSlot tab);
|
||||
void set_url(LuaCoreStack &LS, LuaSlot val);
|
||||
void set_mime_type(LuaCoreStack &LS, LuaSlot val);
|
||||
void set_content(LuaCoreStack &LS, LuaSlot val);
|
||||
void set_jsonvalue(LuaCoreStack &LS, LuaSlot val);
|
||||
|
||||
// Set default values for method and port.
|
||||
// This must be done after setting regular values.
|
||||
@@ -198,11 +198,11 @@ public:
|
||||
void set_mime_type(const eng::string &mime_type);
|
||||
void set_content(const eng::string &content);
|
||||
|
||||
void set_status(LuaStack &LS, LuaSlot val);
|
||||
void set_max_age(LuaStack &LS, LuaSlot val);
|
||||
void set_mime_type(LuaStack &LS, LuaSlot val);
|
||||
void set_content(LuaStack &LS, LuaSlot val);
|
||||
void set_jsonvalue(LuaStack &LS, LuaSlot val);
|
||||
void set_status(LuaCoreStack &LS, LuaSlot val);
|
||||
void set_max_age(LuaCoreStack &LS, LuaSlot val);
|
||||
void set_mime_type(LuaCoreStack &LS, LuaSlot val);
|
||||
void set_content(LuaCoreStack &LS, LuaSlot val);
|
||||
void set_jsonvalue(LuaCoreStack &LS, LuaSlot val);
|
||||
|
||||
// Set default values.
|
||||
//
|
||||
@@ -388,7 +388,7 @@ public:
|
||||
|
||||
// Store the parsed fields into a lua table.
|
||||
//
|
||||
void store(LuaStack &LS, LuaSlot tab) const;
|
||||
void store(LuaCoreStack &LS, LuaSlot tab) const;
|
||||
|
||||
// The parser will not try to parse content longer than this.
|
||||
//
|
||||
@@ -420,7 +420,7 @@ public:
|
||||
|
||||
// Synthesize an error and store it in lua.
|
||||
//
|
||||
static void store_fail(LuaStack &LS, LuaSlot tab, int status, std::string_view error);
|
||||
static void store_fail(LuaCoreStack &LS, LuaSlot tab, int status, std::string_view error);
|
||||
};
|
||||
|
||||
class HttpClientRequestMap : public eng::map<int64_t, HttpClientRequest> {
|
||||
|
||||
Reference in New Issue
Block a user