TI's CC3100 websocket camera demo with Arducam mini ov5642 and freertos. Should work with other M3's. Work in progress test demo.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Dynamic request handler module

Dynamic request handler module

This module implements dynamic content processing for HTTP requests. More...

Functions

int HttpDynamic_InitRequest (UINT16 uConnection, struct HttpBlob resource, UINT8 method)
 Initialize HttpDynamic module state for a new request, and identify the request This function must examine the specified resource string and determine whether it can commit to process this request If this function returns nonzero, then the core will call HttpDynamic_ProcessRequest() with the rest of the request details.
int HttpDynamic_ProcessRequest (struct HttpRequest *request)
 Process a dynamic-content HTTP request This function is only be called by the core, if HttpDynamic_InitRequest() returns nonzero.

Detailed Description

This module implements dynamic content processing for HTTP requests.

All requests are handled by C code functions, and the response contents is returned via HttpResopnse routines Note this module is only compiled if HTTP_CORE_ENABLE_DYNAMIC is defined in HttpConfig.h


Function Documentation

int HttpDynamic_InitRequest ( UINT16  uConnection,
struct HttpBlob  resource,
UINT8  method 
)

Initialize HttpDynamic module state for a new request, and identify the request This function must examine the specified resource string and determine whether it can commit to process this request If this function returns nonzero, then the core will call HttpDynamic_ProcessRequest() with the rest of the request details.

Parameters:
uConnectionThe number of the connection. This value is guaranteed to satisfy: 0 <= uConnection < HTTP_CORE_MAX_CONNECTIONS
resourceThe resource part of the URL, as specified by the browser in the request, including any query string (and hash) Note: The resource string exists ONLY during the call to this function. The string pointer should not be copied by this function.
methodThe HTTP method sent from the client for the resource
Returns:
nonzero if request is to be handled by this module. zero if not.

Definition at line 69 of file HttpDynamic.cpp.

int HttpDynamic_ProcessRequest ( struct HttpRequest request )

Process a dynamic-content HTTP request This function is only be called by the core, if HttpDynamic_InitRequest() returns nonzero.

This function processes the specified HTTP request, and send the response on the connection specified by request->uConnection. This function must call the HttpResponse_*() functions in order to send data back to the browser. Please refer to HttpResponse.h for more information.

Parameters:
requestPointer to all data available about the request

Definition at line 99 of file HttpDynamic.cpp.