WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB-UTIL Reference

pj_http_resp Struct Reference

#include <http_client.h>

Data Fields

pj_str_t version
 
pj_uint16_t status_code
 
pj_str_t reason
 
pj_http_headers headers
 
pj_http_auth_chal auth_chal
 
pj_int32_t content_length
 
void * data
 
pj_size_t size
 

Detailed Description

This structure describes HTTP response.

Field Documentation

◆ auth_chal

pj_http_auth_chal pj_http_resp::auth_chal

Parsed WWW-Authenticate header, if any.

◆ content_length

pj_int32_t pj_http_resp::content_length

The value of content-length header field. -1 if not specified.

◆ data

void* pj_http_resp::data

Data received

◆ headers

pj_http_headers pj_http_resp::headers

Response headers

◆ reason

pj_str_t pj_http_resp::reason

Reason phrase

◆ size

pj_size_t pj_http_resp::size

Data size

◆ status_code

pj_uint16_t pj_http_resp::status_code

Status code of the request

◆ version

pj_str_t pj_http_resp::version

HTTP version of the server


The documentation for this struct was generated from the following file:

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.