Host HTTP Requests Processing
161
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
HTTP Server
}
break
;
default
:
/* GET/PUT/DELETE requests will reach here. */
break
;
}
}
9.7.3.1
Long Requests and Delayed Responses
Only the first 1364 bytes of the request are passed to the handler (this includes the meta-data). The reset
(if present) should be requested using the sl_NetAppRecv API outside the handler. The user may choose
at what fragment size to pull the remaining payload from the device. The last fragment indicates when the
flags returned by the sl_NetAppRecv API no longer contain the continuation flag. The same flow can be
used if the response cannot be determined by the NetApp handler and must be delegated to another
process. In this case, the handler must fill the response filed as pending and return. The process must
then be invoked to retrieve the reset of the request (if present) and actually send the response.
demonstrates the data flow with delayed response.