Ejemplo n.º 1
0
const char * http_get_header(file_t f, int i)
{
  HTTPContext * h;

  if (fs_get_handler(f) != &vh)
    return NULL;

  h = fs_get_handle(f);
  if (!h)
    return NULL;

  return hdr_get(h, i);
}
Ejemplo n.º 2
0
int http_hdr_res_get_sync(HTTP_HDR_RES *hdr_res, ACL_VSTREAM *stream, int timeout)
{
	return hdr_get(&hdr_res->hdr, stream, timeout) == HTTP_CHAT_OK ? 0 : -1;
}
Ejemplo n.º 3
0
int http_hdr_req_get_sync(HTTP_HDR_REQ *hdr_req, ACL_VSTREAM *stream, int timeout)
{
	return (hdr_get(&hdr_req->hdr, stream, timeout) == HTTP_CHAT_OK ? 0 : -1);
}