Send the request headers in pRequestHeaders over the transport.
If HTTP_SEND_DISABLE_CONTENT_LENGTH_FLAG is not set in parameter sendFlags, then the Content-Length to be sent to the server is automatically written to pRequestHeaders. The Content-Length will not be written when there is no request body. If there is not enough room in the buffer to write the Content-Length then HTTPInsufficientMemory is returned. Please see HTTP_MAX_CONTENT_LENGTH_HEADER_LENGTH for the maximum Content-Length header field and value that could be written to the buffer.
The application should close the connection with the server if any of the following errors are returned:
| [in] | pTransport | Transport interface, see TransportInterface_t for more information. |
| [in] | getTimestampMs | Function to retrieve a timestamp in milliseconds. |
| [in] | pRequestHeaders | Request configuration containing the buffer of headers to send. |
| [in] | reqBodyLen | The length of the request entity in bytes. |
| [in] | sendFlags | Flags which modify the behavior of this function. Please see HTTPClient_Send Flags for more information. |