mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-28 00:20:01 -07:00
middleware: add basic response middleware
This commit adds a basic response middleware for both announces, and scrapes. Completes one of the tasks in #145
This commit is contained in:
11
server/store/middleware/response/README.md
Normal file
11
server/store/middleware/response/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
## 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.
|
||||
Reference in New Issue
Block a user