Skip to content

Commit

Permalink
support add_header based on HaxeFoundation/neko#204
Browse files Browse the repository at this point in the history
  • Loading branch information
lublak committed Dec 24, 2019
1 parent 46f4f38 commit 2e0fdde
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ModNekoApi.hx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ class ModNekoApi {
addHeader(h,CHeaderKey,NativeString.toString(header));
addHeader(h,CHeaderValue,NativeString.toString(value));
}

function add_header( header : NativeString, value : NativeString ) {
var h = NativeString.toString(header);
addHeader(h,CHeaderKey,NativeString.toString(header));
addHeader(h,CHeaderAddValue,NativeString.toString(value));
}

function get_cookies() {
var v : Dynamic = null;
Expand Down

0 comments on commit 2e0fdde

Please sign in to comment.