hp = sp->http;
break;
case HDR_OBJ:
- hp = &sp->obj->http;
+ hp = sp->obj->http;
break;
default:
INCOMPL();
VRT_DO_HDR(bereq, request, sp->bereq->http, HTTP_HDR_REQ)
VRT_DO_HDR(bereq, url, sp->bereq->http, HTTP_HDR_URL)
VRT_DO_HDR(bereq, proto, sp->bereq->http, HTTP_HDR_PROTO)
-VRT_DO_HDR(obj, proto, &sp->obj->http, HTTP_HDR_PROTO)
-VRT_DO_HDR(obj, response, &sp->obj->http, HTTP_HDR_RESPONSE)
+VRT_DO_HDR(obj, proto, sp->obj->http, HTTP_HDR_PROTO)
+VRT_DO_HDR(obj, response, sp->obj->http, HTTP_HDR_RESPONSE)
VRT_DO_HDR(resp, proto, sp->http, HTTP_HDR_PROTO)
VRT_DO_HDR(resp, response, sp->http, HTTP_HDR_RESPONSE)
char *p;
assert(num >= 100 && num <= 999);
- p = WS_Alloc(sp->obj->http.ws, 4);
+ p = WS_Alloc(sp->obj->http->ws, 4);
if (p == NULL)
WSP(sp, SLT_LostHeader, "%s", "obj.status");
else
sprintf(p, "%d", num);
- http_SetH(&sp->obj->http, HTTP_HDR_STATUS, p);
+ http_SetH(sp->obj->http, HTTP_HDR_STATUS, p);
}
int
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
/* XXX: use http_GetStatus() */
- if (sp->obj->http.status)
- return (sp->obj->http.status);
- return (atoi(sp->obj->http.hd[HTTP_HDR_STATUS].b));
+ if (sp->obj->http->status)
+ return (sp->obj->http->status);
+ return (atoi(sp->obj->http->hd[HTTP_HDR_STATUS].b));
}
void
{
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
- return (sp->obj->http.hd[HTTP_HDR_PROTO].b);
+ return (sp->obj->http->hd[HTTP_HDR_PROTO].b);
}
const char *
{
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
- return (sp->obj->http.hd[HTTP_HDR_RESPONSE].b);
+ return (sp->obj->http->hd[HTTP_HDR_RESPONSE].b);
}
int
{
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
- return (atoi(sp->obj->http.hd[HTTP_HDR_STATUS].b));
+ return (atoi(sp->obj->http->hd[HTTP_HDR_STATUS].b));
}
/*--------------------------------------------------------------------*/