Skip to main content

Module server

Module server 

Source
Expand description

HTTP-server side: accept WHIP/WHEP offers from remote clients.

Mounts axum routers that publish into moq_net::OriginProducer (WHIP / server publish) and pull from moq_net::OriginConsumer (WHEP / server subscribe). The HTTP listener itself is the caller’s responsibility; the binary in bin/moq-rtc.rs mounts these under axum_server.

Modules§

whep
server subscribe: WHEP server.
whip
server publish: WHIP server (RFC 9725).

Structs§

Config
Configuration shared by both server publish and server subscribe.
Response
The result of a WHIP/WHEP whip::accept / whep::accept: the SDP answer to return to the client, plus an opaque resource id for the Location header (the RFC 9725 session resource URL).
Server
Glue that owns the moq-net origin pair and hands axum routers to the caller.