File
Blob: src/rust/worker/ffi.h
| 1 | // Copyright (c) 2026 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | #include <workerd/io/worker-interface.h> |
| 8 | #include <workerd/rust/kj/ffi.h> |
| 9 | #include <workerd/rust/kj/http.rs.h> |
| 10 | |
| 11 | #include <kj/compat/http.h> |
| 12 | |
| 13 | namespace workerd::rust::worker { |
| 14 | |
| 15 | using HttpMethod = kj::HttpMethod; |
| 16 | using HttpHeaders = kj::HttpHeaders; |
| 17 | using HttpServiceResponse = kj::HttpService::Response; |
| 18 | using AsyncInputStream = kj::AsyncInputStream; |
| 19 | using AsyncIoStream = kj::AsyncIoStream; |
| 20 | using ConnectResponse = kj::HttpService::ConnectResponse; |
| 21 | |
| 22 | using CustomEvent = workerd::WorkerInterface::CustomEvent; |
| 23 | |
| 24 | } // namespace workerd::rust::worker |