plugins: http_static. Migrate to use api string type. 98/19698/8
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Sun, 19 May 2019 02:09:28 +0000 (22:09 -0400)
committerOle Trøan <otroan@employees.org>
Wed, 29 May 2019 07:40:56 +0000 (07:40 +0000)
commit68b24e2c9ae80839d15f680959cce31ca3ec2123
tree2ae49e41e5e64509c0dfdeb02b20819d15f97e7b
parent883a8672c14085b61450599188d04317c45f5d12
plugins: http_static. Migrate to use api string type.

This is not my core competency.
Reviews/feedback/suggestions welcomed. ;)

Tested with:
  rv = self.vapi.http_static_enable(
             fifo_size = 1,
             cache_size_limit = 1000000,
             prealloc_fifos = 0,
             private_segment_size = 0,
             uri="tcp://0.0.0.0/80",
             www_root = "/var/tmp/run/vpp/html"
             )

  DBGvpp# show http static server
  www_root /var/tmp/run/vpp/html, cache size 0 bytes, limit 1000000 bytes, evictions 0

Change-Id: I0f660753317ceedab89da1b65701a24d6f7145de
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
src/plugins/http_static/http_static.api
src/plugins/http_static/http_static.c
src/plugins/http_static/http_static_test.c