webview-bundle-protocol 0.0.0-next.80

TBD
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod bundle;
mod local;

use async_trait::async_trait;
use std::borrow::Cow;
use webview_bundle::http::{Request, Response};

#[async_trait]
pub trait Protocol: Send + Sync {
  async fn handle(&self, request: Request<Vec<u8>>) -> crate::Result<Response<Cow<'static, [u8]>>>;
}

pub use bundle::*;
pub use local::*;