sui_proxy::middleware

Function expect_mysten_proxy_header

Source
pub async fn expect_mysten_proxy_header(
    __arg0: TypedHeader<ContentType>,
    request: Request<Body>,
    next: Next,
) -> Result<Response, (StatusCode, &'static str)>
Expand description

we expect sui-node to send us an http header content-type encoding.