Changes in uspace/lib/http/src/headers.c [b7fd2a0:10de842] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/http/src/headers.c
rb7fd2a0 r10de842 94 94 } 95 95 96 errno_t http_header_receive_name(receive_buffer_t *rb,96 int http_header_receive_name(receive_buffer_t *rb, 97 97 receive_buffer_mark_t *name_end) 98 98 { … … 102 102 recv_mark_update(rb, name_end); 103 103 104 errno_t rc = recv_char(rb, &c, true);104 int rc = recv_char(rb, &c, true); 105 105 if (rc != EOK) 106 106 return rc; … … 113 113 } 114 114 115 errno_t http_header_receive_value(receive_buffer_t *rb,115 int http_header_receive_value(receive_buffer_t *rb, 116 116 receive_buffer_mark_t *value_start, receive_buffer_mark_t *value_end) 117 117 { 118 errno_t rc = EOK;118 int rc = EOK; 119 119 char c = 0; 120 120 … … 167 167 } 168 168 169 errno_t http_header_receive(receive_buffer_t *rb, http_header_t *header,169 int http_header_receive(receive_buffer_t *rb, http_header_t *header, 170 170 size_t size_limit, size_t *out_bytes_used) 171 171 { … … 176 176 recv_mark(rb, &mark_end); 177 177 178 errno_t rc = http_header_receive_name(rb, &mark_end);178 int rc = http_header_receive_name(rb, &mark_end); 179 179 if (rc != EOK) 180 180 goto end; … … 259 259 } 260 260 261 errno_t http_headers_find_single(http_headers_t *headers, const char *name,261 int http_headers_find_single(http_headers_t *headers, const char *name, 262 262 http_header_t **out_header) 263 263 { … … 282 282 } 283 283 284 errno_t http_headers_append(http_headers_t *headers, const char *name,284 int http_headers_append(http_headers_t *headers, const char *name, 285 285 const char *value) 286 286 { … … 293 293 } 294 294 295 errno_t http_headers_set(http_headers_t *headers, const char *name,295 int http_headers_set(http_headers_t *headers, const char *name, 296 296 const char *value) 297 297 { 298 298 http_header_t *header = NULL; 299 errno_t rc = http_headers_find_single(headers, name, &header);299 int rc = http_headers_find_single(headers, name, &header); 300 300 if (rc != EOK && rc != HTTP_EMISSING_HEADER) 301 301 return rc; … … 313 313 } 314 314 315 errno_t http_headers_get(http_headers_t *headers, const char *name, char **value)315 int http_headers_get(http_headers_t *headers, const char *name, char **value) 316 316 { 317 317 http_header_t *header = NULL; 318 errno_t rc = http_headers_find_single(headers, name, &header);318 int rc = http_headers_find_single(headers, name, &header); 319 319 if (rc != EOK) 320 320 return rc; … … 324 324 } 325 325 326 errno_t http_headers_receive(receive_buffer_t *rb, http_headers_t *headers,326 int http_headers_receive(receive_buffer_t *rb, http_headers_t *headers, 327 327 size_t limit_alloc, unsigned limit_count) 328 328 { 329 errno_t rc = EOK;329 int rc = EOK; 330 330 unsigned added = 0; 331 331
Note:
See TracChangeset
for help on using the changeset viewer.