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)
commit9929561a5d7388e655eadfaf458d27b96f00abd5
treef36fd860a00659025097458e08acbe71ab552f50
parent19cb04df063a85ab8e416a9f44fd47ff89857901
http_static: pass http request type to builtin handlers

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
src/plugins/builtinurl/builtins.c
src/plugins/http_static/static_server.c