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

Function das_httpr_each_param

modules/dasHV/src/dasHV.cpp:708–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708void das_httpr_each_param ( HttpRequest * req, const TBlock<void,const char *,const char *> & block, Context * context, LineInfoArg * at ) {
709 if ( !req ) return;
710 for ( auto & kv : req->query_params ) {
711 vec4f args[2];
712 args[0] = cast<const char *>::from(kv.first.c_str());
713 args[1] = cast<const char *>::from(kv.second.c_str());
714 context->invoke(block, args, nullptr, at);
715 }
716}
717
718void das_httpr_set_header ( HttpRequest * req, const char * key, const char * value ) {
719 if ( !req ) return;

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45
invokeMethod · 0.45

Tested by

no test coverage detected