Description

Adds a HTTP request header 'key: value'.

See Efl.Net.Dialer.Websocket.request_headers_clear

WebSocket won't allow the following headers to be added as they conflict with its own operation:

- Content-Length - Content-Type - Transfer-Encoding - Connection - Upgrade - Expect - Sec-WebSocket-Version - Sec-WebSocket-Key

This should be called before dialing.

Since 1.19

Signature

request_header_add {
    params {
        @in key: free(string, free);
        @in value: free(string, free);
    }
}

C signature

void efl_net_dialer_websocket_request_header_add(Eo *obj, const char *key, const char *value);

Parameters

  • key (in) - HTTP request header key
  • value (in) - HTTP request header value

Implemented by

  • Efl.Net.Dialer.Websocket.request_header_add