| 1049 | } |
| 1050 | |
| 1051 | void 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 | |
| 1061 | int das_http_response_content_length ( const HttpResponse & resp ) { |
| 1062 | return int(resp.content_length); |