| 706 | } |
| 707 | |
| 708 | void 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 | |
| 718 | void das_httpr_set_header ( HttpRequest * req, const char * key, const char * value ) { |
| 719 | if ( !req ) return; |