1package foo:foo;
2
3interface http-types{
4  record request {
5    method: string
6  }
7  record response {
8    body: string
9  }
10}
11
12world http-interface {
13  export http-handler: interface {
14    use http-types.{request,response};
15    handle-request: func(request: request) -> response;
16  }
17  import http-fetch: interface {
18    use http-types.{request,response};
19    fetch-request: func(request: request) -> response;
20  }
21}
22