net::http::header_set: rename from set_header
This commit is contained in:
parent
0eef917610
commit
4ce86752b3
|
@ -16,7 +16,7 @@ export fn header_add(head: *header, name: str, val: str) void = {
|
||||||
|
|
||||||
// Sets the value of a given HTTP header, removing any previous values. The name
|
// Sets the value of a given HTTP header, removing any previous values. The name
|
||||||
// should be canonicalized by the caller.
|
// should be canonicalized by the caller.
|
||||||
export fn set_header(head: *header, name: str, val: str) void = {
|
export fn header_set(head: *header, name: str, val: str) void = {
|
||||||
header_del(head, name);
|
header_del(head, name);
|
||||||
header_add(head, name, val);
|
header_add(head, name, val);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue