SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
All HTTP requests transferred to the host are processed through the macro slcb_NetAppRequestHdlr, which should be mapped to a user function by user.h. The function receives two parameters (and returns void): A pointer to the request structure containing the parameters and type of the HTTP request, and a pointer to the response structure which should be populated with the desired HTTP response.
The HTTP headers are transferred to the host as TLVs (type length value) in the metadata section of the request. The HTTP message (if present) is transferred as is, and should be parsed and processed by the user function. The HTTP user handler is invoked from the SimpleLink driver context, and must therefore return quickly and without calling any other SimpleLink APIs. If the response cannot be determined immediately by the handler, it should set the response status to pending and return. The application must then generate and send a response from its own context.