SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
When the HTTP server receives an HTTP GET request for a resource which is not a ROM or user page, the HTTP handler (as shown in the preceeding example) is invoked with SL_NETAPP_REQUEST_HTTP_GET as the request type. The handler function must parse the HTTP metadata, extract the resource name and any other fields of interest, and generate a response. The host may choose to respond immediately by filling all response fields in the handler function. Alternatively, the host can fill the status field to “pending”, and return, which means another part of the user application must complete the response using the sl_NetAppSend API (as shown in the examples that follow).