summaryrefslogtreecommitdiffstats
path: root/src/plugins/http_static/http_static.api
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-04-11 17:06:21 -0400
committerFlorin Coras <florin.coras@gmail.com>2019-04-16 19:57:44 +0000
commit22bc2c46e316dd7d5ca4680f85337fe72896ca57 (patch)
tree86e7e546c8d738422ef882db75c5861a8bccd534 /src/plugins/http_static/http_static.api
parent28aa539f7da7b172d0f35ea9a63f3986939477f7 (diff)
Static http server
Good enough to serve the vpp sphinx and doxygen docs. Knows about html, css, and javascript files. Change-Id: Ib18c19f07f35f91ba935ea26ed7be406dacf2205 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins/http_static/http_static.api')
-rw-r--r--src/plugins/http_static/http_static.api35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/plugins/http_static/http_static.api b/src/plugins/http_static/http_static.api
new file mode 100644
index 00000000000..1866e38cb47
--- /dev/null
+++ b/src/plugins/http_static/http_static.api
@@ -0,0 +1,35 @@
+
+/** \file
+ This file defines static http servercontrol-plane API messages
+*/
+option version = "1.0.0";
+
+/** \brief Configure and enable the static http server
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param fifo_size - size (in bytes) of the session FIFOs
+ @param cache_size_limit - size (in bytes) of the in-memory file data cache
+ @param prealloc_fifos - number of preallocated fifos (usually 0)
+ @param private_segment_size - fifo segment size (usually 0)
+ @param www_root - html root path
+ @param uri - bind URI, defaults to "tcp://0.0.0.0/80"
+*/
+
+autoreply define http_static_enable {
+ /* Client identifier, set from api_main.my_client_index */
+ u32 client_index;
+
+ /* Arbitrary context, so client can match reply to request */
+ u32 context;
+ /* Typical options */
+ u32 fifo_size;
+ u32 cache_size_limit;
+ /* Unusual options */
+ u32 prealloc_fifos;
+ u32 private_segment_size;
+
+ /* Root of the html path */
+ u8 www_root[256];
+ /* The bind URI */
+ u8 uri[256];
+};