T29: use QuickJS and verify the HTTP hook and guest networking
This commit is contained in:
@@ -47,10 +47,11 @@ mod bindings {
|
||||
use bindings::sausage::process::host::{Host, HostChild, Request, Stdio};
|
||||
mod cache;
|
||||
mod http;
|
||||
pub use http::Router;
|
||||
pub mod net;
|
||||
/// Temporary default until T28 supplies the bounded QuickJS evaluator.
|
||||
/// Credential scripts use T28's bounded QuickJS component.
|
||||
pub fn default_script() -> Arc<dyn crate::cred::script::Script> {
|
||||
Arc::new(crate::cred::v8::V8)
|
||||
Arc::new(crate::cred::quickjs::QuickJs::default())
|
||||
}
|
||||
pub use cache::configure as configure_cache;
|
||||
mod services;
|
||||
@@ -167,12 +168,7 @@ impl Runtime {
|
||||
world: World,
|
||||
cred: Arc<crate::cred::Cred>,
|
||||
script: Arc<dyn crate::cred::script::Script>,
|
||||
router: Option<
|
||||
fn(
|
||||
&crate::cred::Caller,
|
||||
::http::Request<bytes::Bytes>,
|
||||
) -> ::http::Response<bytes::Bytes>,
|
||||
>,
|
||||
router: Option<Router>,
|
||||
) -> anyhow::Result<Arc<Self>> {
|
||||
Self::with_hooks(
|
||||
world,
|
||||
|
||||
Reference in New Issue
Block a user