diff --git a/Cargo.toml b/Cargo.toml index 3f60d4d..1ea56dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "otoroshi_rust_types" -version = "0.0.5" +version = "0.0.6" edition = "2021" authors = ["Zwiterrion "] license = "MIT OR Apache-2.0" diff --git a/src/types.rs b/src/types.rs index 3fb656f..a77fb70 100644 --- a/src/types.rs +++ b/src/types.rs @@ -406,4 +406,13 @@ pub struct WasmRequestHandlerResponse { } - +#[derive(Serialize, Deserialize, Debug)] +pub struct WasmResponse { + pub status: Option, + pub headers: HashMap, + pub cookies: Value, + pub body_bytes: Option>, + pub body_base64: Option, + pub body_json: Option, + pub body_str: Option, +}