http_static: pass http request type to builtin handlers 21/22821/2
authorDave Barach <dave@barachs.net>
Thu, 17 Oct 2019 19:53:08 +0000 (15:53 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 17 Oct 2019 20:59:14 +0000 (20:59 +0000)
Makes it easy to tell GETs from POSTs, etc., in case one wants to
register the same handler for multiple request types.

Return interface stats as a json array, makes .js code a lot simpler.

Type: refactor

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Iadae7b909cf3e8ea179fe93620737fdf68f888ac


No differences found