parse static method
Parses the given uri
and handles the video request via the appropriate parser.
socket
: The client socket to send the response to.
uri
: The URI of the video resource to be parsed.
headers
: HTTP headers for the request.
Returns a Future that completes when the parsing and response are done.
Implementation
static Future<void> parse(
Socket socket,
Uri uri,
Map<String, String> headers,
) async {
await UrlParserFactory.createParser(uri).parse(socket, uri, headers);
}