pub struct AppRequest {
pub id: String,
pub method: String,
pub path: String,
pub headers: HashMap<String, String>,
pub body: Value,
pub caller: Option<CallerContext>,
}Expand description
HTTP request forwarded to an app
Fields§
§id: StringUnique request identifier for correlation
method: StringHTTP method (GET, POST, PUT, DELETE, PATCH)
path: StringSub-path within the app (e.g., “/hello”, “/stats”)
headers: HashMap<String, String>HTTP headers as key-value pairs (x-node-* headers are stripped by the proxy)
body: ValueRequest body as JSON value
caller: Option<CallerContext>Caller identity set by the host proxy after scoped JWT validation. None for direct (non-proxy) requests such as internal capability calls.
Trait Implementations§
Source§impl Clone for AppRequest
impl Clone for AppRequest
Source§fn clone(&self) -> AppRequest
fn clone(&self) -> AppRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppRequest
impl Debug for AppRequest
Source§impl<'de> Deserialize<'de> for AppRequest
impl<'de> Deserialize<'de> for AppRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AppRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AppRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AppRequest
impl Serialize for AppRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AppRequest
impl RefUnwindSafe for AppRequest
impl Send for AppRequest
impl Sync for AppRequest
impl Unpin for AppRequest
impl UnsafeUnpin for AppRequest
impl UnwindSafe for AppRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more