diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-03-05 11:36:44 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-03-05 11:36:44 +0100 |
commit | b87b3ca2937fa4b24f8fc1627bdacad6194dcd59 (patch) | |
tree | a92f0c0bb075c5ba19a484554c0fd61985f21446 /README | |
parent | b388fe2ffe7d786eac61dc68ed4fbafc57450276 (diff) |
dash_server: handle DELETE requests
Diffstat (limited to 'README')
-rw-r--r-- | README | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -7,13 +7,15 @@ interpreter. No dependencies beyond the standard library are neded. The executable takes one mandatory parameter, which is the path to the directory to which the DASH media files shall be written. -The server processes incoming HTTP GET, PUT and POST requests. PUT and POST are -treated identically - request body is written into a file inside the media -directory, with the name equal to decoded request target. For requests using -chunked transfer encoding, the body shall also be temporarily cached in memory -and will be available to incoming GET requests while it is being received. -To GET requests the server will serve either the accordingly-named file from the -media directory or the aforementioned cache entry. +The server processes incoming HTTP GET, PUT, POST and DELETE requests. PUT and +POST are treated identically - request body is written into a file inside the +media directory, with the name equal to decoded request target. For requests +using chunked transfer encoding, the body shall also be temporarily cached in +memory and will be available to incoming GET requests while it is being +received. To GET requests the server will serve either the accordingly-named +file from the media directory or the aforementioned cache entry. +DELETE requests make the server remove accordingly-named files in the media +directory if they are not currently being uploaded. The server is written to be as simple as possible and is intended to be deployed as a backend behind a gateway HTTP server such as nginx (sample config is |