Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 1.00.00

Persistent Connection allows to send multiple HTTP requests one after the other on the same open connection before closing it.

Example

In this example, two HTTP requests are queued on an HTTP Connection before the client closes the connection.

The function HTTPc_ReqSend is called with the flag HTTPc_FLAG_REQ_NO_BLOCK, so the function is not blocking and will return before the transaction is complete. Therefore the Transaction Complete callback must be set up to retrieve the HTTP response.