libgpac
Documentation of the core library of GPAC
JSHTTPServer Interface Reference

JSHTTPServer API. More...

import"httpout.idl";

Public Member Functions

attribute void on_request (JSHTTPRequest req)
 

Detailed Description

The JSHTTPServer interface has a single instance exposed to the script under the name "httpout". It implements callbacks from the HTTP server . The object can also be bound to a running filter using JSFSFilter.bind

Member Function Documentation

◆ on_request()

attribute void JSHTTPServer::on_request ( JSHTTPRequest  req)

indicate a new request is being processed

The request is pending until the send method is used (can be asynchronous)

Note
this function is mandatory
Parameters
reqthe request being processed