parse static method

Future<void> parse(
  1. Socket socket,
  2. Uri uri,
  3. Map<String, String> headers
)

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);
}