This commit is contained in:
2026-08-09 19:54:45 +02:00
parent 3fbcdb09d5
commit df532149f9
9 changed files with 13 additions and 9 deletions
+5 -1
View File
@@ -8,13 +8,17 @@
@title{Publishing Media Files}
@defmodule[(file "../media-file-server.rkt")]
@defmodule[racket-upnp/media-file-server]
This module publishes local files through a small Racket web server. The
underlying Racket file dispatcher streams files and supports both @tt{HEAD}
requests and HTTP byte ranges. Byte ranges are important for media-renderer
probing and seeking.
@defproc[(media-file-server? [value any/c]) boolean?]{
Returns @racket[#t] when @racket[value] is a media file server.
}
@defproc[(start-media-file-server
[url string?]
[#:listen-ip listen-ip (or/c #f string?) #f])