Changeset cbfc8b7 in mainline for uspace/lib/http/src/response.c


Ignore:
Timestamp:
2013-10-05T20:49:27Z (11 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4f086417
Parents:
c42f50d
Message:

libhttp: Allow to specify limits when receiving HTTP response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/http/src/response.c

    rc42f50d rcbfc8b7  
    185185}
    186186
    187 int http_receive_response(receive_buffer_t *rb, http_response_t **out_response)
     187int http_receive_response(receive_buffer_t *rb, http_response_t **out_response,
     188    size_t max_headers_size, unsigned max_headers_count)
    188189{
    189190        http_response_t *resp = malloc(sizeof(http_response_t));
     
    198199                goto error;
    199200       
    200         rc = http_headers_receive(rb, &resp->headers);
     201        rc = http_headers_receive(rb, &resp->headers, max_headers_size,
     202            max_headers_count);
    201203        if (rc != EOK)
    202204                goto error;
Note: See TracChangeset for help on using the changeset viewer.