Crate picoserve

source ·
Expand description

An async no_std HTTP server suitable for bare-metal environments, heavily inspired by axum.

It was designed with embassy on the Raspberry Pi Pico W in mind, but should work with other embedded runtimes and hardware.

For examples on how to use picoserve, see the examples directory

Re-exports§

Modules§

Macros§

  • Extract a value from a request. $name must implement FromRequest, but may borrow from the request. If extraction is rejected, the rejection is written to $response_writer and the function returns.
  • Extract values from Request Parts. Each $name must implement FromRequestParts, but may borrow from the request. If extraction is rejected, the rejection is written to $response_writer and the function returns.

Structs§

  • Server Configuration.
  • A Marker showing that the response has been sent.
  • How long to wait before timing out for different operations. If set to None, the operation never times out.

Enums§

  • Errors arising while handling a request.
  • After the response has been sent, should the connection be kept open to allow the client to make further requests on the same TCP connection?
  • Whether to perform a graceful shutdown or abort the connection after all requests have been handled.

Traits§

Functions§

  • Serve app with incoming requests. App has no state.
  • Serve app with incoming requests. App has a state of State.