#http-response #spin #wasi #http-request #http-service #helper

spin-contrib-http

Bunch of helpers for building HTTP services using Fermyon Spin

7 releases

0.0.8 Jun 4, 2024
0.0.7 May 8, 2024
0.0.5 Apr 29, 2024

#298 in WebAssembly

Download history 378/week @ 2024-04-24 29/week @ 2024-05-01 224/week @ 2024-05-08 2/week @ 2024-05-15 4/week @ 2024-05-22 102/week @ 2024-05-29 53/week @ 2024-06-05

155 downloads per month

MIT license

36KB
813 lines

Helpers for building HTTP-APIs with Fermyon Spin

This crate contributes the following capabilities to the Spin SDK for Rust:

  • Creating cookies
  • Cross-Origin Resource-Sharing (CORS)
  • Response helpers to produce common HTTP responses
  • Request helpers to examine incoming HTTP requests

Examples

Tale a look at the examples folder.


lib.rs:

Helpers for building HTTP-APIs with Fermyon Spin

spin-contrib-http contributes the following capabilities to the Spin SDK for Rust:

  • Creating cookies
  • Cross-Origin Resource-Sharing (CORS)
  • Response helpers to produce common HTTP responses
  • Request helpers to examine incoming HTTP requests

Dependencies

~3.5MB
~73K SLoC