mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-28 00:20:01 -07:00
This commit adds a basic response middleware for both announces, and scrapes. Completes one of the tasks in #145
365 B
365 B
Response Middleware
This package provides the final response for a chain of middleware using the “store” package.
store_response
The store_response middleware uses the peer data stored in the peerStore to create a response for the request.
Important things to notice
This middleware is very basic, and may not do everything that you require.