setHttpHeader method
This method allows for the inclusion of custom HTTP headers. In the case of the WebSocket transport, the added headers are transmitted during the handshake.
This functionality is particularly useful when an authentication solution is in place between the client and the MigratoryData server, which requires an HTTP header containing an authentication token.
\param header header name \param value header value
Implementation
void setHttpHeader(String header, String value, {bool preserveHeaderCase = true}) {
clientImpl.setHttpHeader(header, value, preserveHeaderCase);
}