aboutsummaryrefslogtreecommitdiffstats
path: root/pages/develop/api/efl/net/dialer/websocket/method/request_header_add.txt
blob: 579f402ccc8717de6031e461e305b2624d56b70b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
~~Title: Efl.Net.Dialer.Websocket.request_header_add~~
===== Signature =====

<code>
request_header_add {
    params {
        @in key: free(string, free);
        @in value: free(string, free);
    }
}
</code>

===== C signature =====

<code c>
void efl_net_dialer_websocket_request_header_add(Eo *obj, const char *key, const char *value);
</code>

===== Parameters =====

  * **key** //(in)// - %%HTTP request header key%%
  * **value** //(in)// - %%HTTP request header value%%

===== Description =====

%%Adds a HTTP request header 'key: value'.%%

%%See %%[[:develop:api:efl:net:dialer:websocket:method:request_headers_clear|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//
{{page>:develop:api-include:efl:net:dialer:websocket:method:request_header_add:description&nouser&nolink&nodate}}

===== Implemented by =====

  * **Efl.Net.Dialer.Websocket.request_header_add**