Skip to content

Commit

Permalink
doc: net: http-server: Add information about static fs resources
Browse files Browse the repository at this point in the history
The supported resource list was missing static file system resource
description.

Signed-off-by: Jukka Rissanen <[email protected]>
  • Loading branch information
jukkar authored and kartben committed Jan 14, 2025
1 parent 3f3c66f commit 572518e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion doc/connectivity/networking/api/http_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ Currently, the following resource types are supported:
* Static resources - content defined compile-time, cannot be modified at runtime
(:c:enumerator:`HTTP_RESOURCE_TYPE_STATIC`).

* Static file system resources - the path at which the filesystem is mounted,
and the URL at which the filesystem is made available are fixed at build time,
but the content within the filesystem can be changed dynamically. This means that
the files can be created, modified or deleted by some other code outside the HTTP
server (:c:enumerator:`HTTP_RESOURCE_TYPE_STATIC_FS`).

* Dynamic resources - content provided at runtime by respective application
callback (:c:enumerator:`HTTP_RESOURCE_TYPE_DYNAMIC`).

Expand Down Expand Up @@ -190,7 +196,8 @@ where ``src/index.html`` is the location of the webpage to be compressed.
Static filesystem resources
===========================

Static filesystem resource content is defined build-time and is immutable. The following
Static filesystem resource content is defined build-time and is immutable. Note that only
``GET`` operation is supported, user is not able to upload files to the filesystem. The following
example shows how the path can be defined as a static resource in the application:

.. code-block:: c
Expand Down

0 comments on commit 572518e

Please sign in to comment.