File
Blob: src/workerd/api/tests/stw-jsrpc-dataclone-callee.js
| 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 | import { WorkerEntrypoint } from 'cloudflare:workers'; |
| 5 | |
| 6 | export class RpcEntrypoint extends WorkerEntrypoint { |
| 7 | async ping() { |
| 8 | return 'ok'; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | export default { |
| 13 | async fetch() { |
| 14 | return new Response('ok', { status: 201 }); |
| 15 | }, |
| 16 | |
| 17 | async queue() { |
| 18 | return { |
| 19 | outcome: 'ok', |
| 20 | retryBatch: { retry: false }, |
| 21 | ackAll: true, |
| 22 | retryMessages: [], |
| 23 | explicitAcks: [], |
| 24 | }; |
| 25 | }, |
| 26 | }; |