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:
Josh de Kock
2016-04-02 01:57:35 +01:00
parent 83ffc0425e
commit 98afbe67da
2 changed files with 68 additions and 0 deletions

View 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.