Port of TI's CC3100 Websock camera demo. Using FreeRTOS, mbedTLS, also parts of Arducam for cams ov5642 and 0v2640. Can also use MT9D111. Work in progress. Be warned some parts maybe a bit flacky. This is for Seeed Arch max only, for an M3, see the demo for CM3 using the 0v5642 aducam mini.
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:
-
uConnection The number of the connection. This value is guaranteed to satisfy: 0 <= uConnection < HTTP_CORE_MAX_CONNECTIONS resource The 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. method The 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:
-
request Pointer to all data available about the request
Definition at line 99 of file HttpDynamic.cpp.
Generated on Tue Jul 12 2022 22:22:39 by 1.7.2