Skip to content

Commit

Permalink
0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwiterrion committed Jun 19, 2024
1 parent 0e5b39a commit 7da68e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "otoroshi_rust_types"
version = "0.0.5"
version = "0.0.6"
edition = "2021"
authors = ["Zwiterrion <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand Down
11 changes: 10 additions & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,4 +406,13 @@ pub struct WasmRequestHandlerResponse {
}



#[derive(Serialize, Deserialize, Debug)]
pub struct WasmResponse {
pub status: Option<u32>,
pub headers: HashMap<String, String>,
pub cookies: Value,
pub body_bytes: Option<Vec<u8>>,
pub body_base64: Option<String>,
pub body_json: Option<Value>,
pub body_str: Option<String>,
}

0 comments on commit 7da68e3

Please sign in to comment.