diff --git a/README.md b/README.md index 79524f773093cfd8bd71c9da65a0a4815dcc449e..4422f7d28df2cf90f086d957e3d730c5c2069d01 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,8 @@ 1. 完美解决托管类无法外部导出 2. 增加简单的返回数据监听回调 3. 增加替换返回的数据 - 4. 增加重写返回的数据 \ No newline at end of file + 4. 增加重写返回的数据 + 5. 增加替换返回的cookie + 6. 增加修改返回的状态码和文本 + 7. 增加删除返回的cookie + 8. 增加给返回的数据添加cookie \ No newline at end of file diff --git a/efd/efd.cpp b/efd/efd.cpp index 02da89697a6e325d8ff664cc31f23bdc807fc9aa..ed71a8a73f7bd4570a5840e171664eb578688e94 100644 Binary files a/efd/efd.cpp and b/efd/efd.cpp differ diff --git a/efd/efd.def b/efd/efd.def index 945be04b5cff23f202692d4cd516c766c242ab5f..4127589fb94d64ab32f472dfd3d9699305ec2788 100644 --- a/efd/efd.def +++ b/efd/efd.def @@ -18,4 +18,8 @@ SetUpstreamGatewayTo UpdateConfig customCertificate RecvRepeatHtml -RecvResetHtml \ No newline at end of file +RecvResetHtml +RecvInsertBody +RecvInsertCookie +RecvRemoveCookie +RecvResetState \ No newline at end of file diff --git a/efd/efd.h b/efd/efd.h index 7af5d5f57a10a1709e9dcdb07081f4ba9a031e95..cd8124df5795bdf9453a21c16a2e4a500c52581b 100644 --- a/efd/efd.h +++ b/efd/efd.h @@ -30,11 +30,17 @@ extern "C" _declspec(dllexport) void __stdcall UpdateConfig(int); extern "C" _declspec(dllexport) void __stdcall customCertificate(char*); extern "C" _declspec(dllexport) int __stdcall RecvRepeatHtml(EFD_pmMessage*, char*, char*); extern "C" _declspec(dllexport) int __stdcall RecvResetHtml(EFD_pmMessage*, char*); +extern "C" _declspec(dllexport) int __stdcall RecvInsertBody(EFD_pmMessage*, char*); +extern "C" _declspec(dllexport) int __stdcall RecvInsertCookie(EFD_pmMessage*, char*); +extern "C" _declspec(dllexport) int __stdcall RecvRemoveCookie(EFD_pmMessage*); +extern "C" _declspec(dllexport) int __stdcall RecvResetState(EFD_pmMessage*, char*, char*); -#define RECV_REPLACE_URL 2001 + +#define RECV_INSERT_BODY 2001 #define RECV_REPLACE_BODY 2002 #define RECV_RESET_BODY 2003 -#define RECV_RESET_STATE 2004 -#define RECV_RESET_COOKIE 2005 +#define RECV_REMOVE_COOKIE 2004 +#define RECV_INSERT_COOKIE 2005 +#define RECV_RESET_STATE 2006