misalcedo / tortuga

A CGI and WCGI server for HTTP/1.1
Apache License 2.0
7 stars 0 forks source link

Implement a runtime #37

Closed misalcedo closed 2 years ago

misalcedo commented 3 years ago

Create a runtime for tortuga.

The runtime will expose an HTTP 2/3 interface and handle requests by creating a new module instance.

Modules are mapped to a uri and method pair. The headers, http version, and method are not passed to the actor. Only the request body and uri is passed.

Add a subcommand called start that runs the server.

misalcedo commented 3 years ago

Use async calls in wastime with fuel consumption to improve the predictability of wasm calls.

misalcedo commented 3 years ago

Host provides a tortuga write message function that takes a memory pointer with enough space to fit the message.

The message size is given on the receive function called by the host. The guest is expected to trap if the message size is too big or cannot be handled for some other reason (i.e. no matching pattern).

Support c, rust, and tortuga in the runtime. Need to check how rust and c handle anyref.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically closed because it has not had recent activity. You may re-open the issue if it is still relevant.