kiwi-sdk 0.1.1

The Kiwi SDK allows you to write pluggable modules that hook into the Kiwi runtime.
Documentation
package kiwi:kiwi@0.1.0;

world intercept-hook {
    use intercept-types.{context, action};

    export intercept: func(ctx: context) -> action;
}

world authenticate-hook {
    use authenticate-types.{outcome, http-request};

    import wasi:http/outgoing-handler@0.2.0;

    export authenticate: func(incoming: http-request) -> outcome;
}

world internal {
    use wasi:http/types@0.2.0.{method, scheme, field-key, field-value};

    import wasi:http/outgoing-handler@0.2.0;
}