MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / das_httpresp_each_cookie

Function das_httpresp_each_cookie

modules/dasHV/src/dasHV.cpp:1051–1059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1049}
1050
1051void das_httpresp_each_cookie ( HttpResponse * resp, const TBlock<void,const char *,const char *> & block, Context * context, LineInfoArg * at ) {
1052 if ( !resp ) return;
1053 for ( auto & cookie : resp->cookies ) {
1054 vec4f args[2];
1055 args[0] = cast<const char *>::from(cookie.name.c_str());
1056 args[1] = cast<const char *>::from(cookie.value.c_str());
1057 context->invoke(block, args, nullptr, at);
1058 }
1059}
1060
1061int das_http_response_content_length ( const HttpResponse & resp ) {
1062 return int(resp.content_length);

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45
invokeMethod · 0.45

Tested by

no test coverage detected