rb 36 http/ngx_http_request_body.c ngx_http_request_body_t *rb; rb 50 http/ngx_http_request_body.c rb = ngx_pcalloc(r->pool, sizeof(ngx_http_request_body_t)); rb 51 http/ngx_http_request_body.c if (rb == NULL) { rb 55 http/ngx_http_request_body.c r->request_body = rb; rb 85 http/ngx_http_request_body.c rb->temp_file = tf; rb 100 http/ngx_http_request_body.c rb->post_handler = post_handler; rb 130 http/ngx_http_request_body.c rb->bufs = ngx_alloc_chain_link(r->pool); rb 131 http/ngx_http_request_body.c if (rb->bufs == NULL) { rb 135 http/ngx_http_request_body.c rb->bufs->buf = b; rb 136 http/ngx_http_request_body.c rb->bufs->next = NULL; rb 138 http/ngx_http_request_body.c rb->buf = b; rb 148 http/ngx_http_request_body.c if (ngx_http_write_request_body(r, rb->bufs) != NGX_OK) { rb 166 http/ngx_http_request_body.c rb->rest = r->headers_in.content_length_n - preread; rb 168 http/ngx_http_request_body.c if (rb->rest <= (off_t) (b->end - b->last)) { rb 172 http/ngx_http_request_body.c rb->to_write = rb->bufs; rb 179 http/ngx_http_request_body.c next = &rb->bufs->next; rb 183 http/ngx_http_request_body.c rb->rest = r->headers_in.content_length_n; rb 184 http/ngx_http_request_body.c next = &rb->bufs; rb 190 http/ngx_http_request_body.c if (rb->rest < size) { rb 191 http/ngx_http_request_body.c size = (ssize_t) rb->rest; rb 204 http/ngx_http_request_body.c rb->buf = ngx_create_temp_buf(r->pool, size); rb 205 http/ngx_http_request_body.c if (rb->buf == NULL) { rb 214 http/ngx_http_request_body.c cl->buf = rb->buf; rb 219 http/ngx_http_request_body.c ngx_memcpy(rb->buf->pos, b->pos, size); rb 220 http/ngx_http_request_body.c rb->buf->last += size; rb 222 http/ngx_http_request_body.c next = &rb->bufs; rb 228 http/ngx_http_request_body.c rb->to_write = rb->bufs; rb 231 http/ngx_http_request_body.c rb->to_write = rb->bufs->next ? rb->bufs->next : rb->bufs; rb 266 http/ngx_http_request_body.c ngx_http_request_body_t *rb; rb 270 http/ngx_http_request_body.c rb = r->request_body; rb 277 http/ngx_http_request_body.c if (rb->buf->last == rb->buf->end) { rb 279 http/ngx_http_request_body.c if (ngx_http_write_request_body(r, rb->to_write) != NGX_OK) { rb 283 http/ngx_http_request_body.c rb->to_write = rb->bufs->next ? rb->bufs->next : rb->bufs; rb 284 http/ngx_http_request_body.c rb->buf->last = rb->buf->start; rb 287 http/ngx_http_request_body.c size = rb->buf->end - rb->buf->last; rb 289 http/ngx_http_request_body.c if ((off_t) size > rb->rest) { rb 290 http/ngx_http_request_body.c size = (size_t) rb->rest; rb 293 http/ngx_http_request_body.c n = c->recv(c, rb->buf->last, size); rb 312 http/ngx_http_request_body.c rb->buf->last += n; rb 313 http/ngx_http_request_body.c rb->rest -= n; rb 316 http/ngx_http_request_body.c if (rb->rest == 0) { rb 320 http/ngx_http_request_body.c if (rb->buf->last < rb->buf->end) { rb 326 http/ngx_http_request_body.c "http client request body rest %O", rb->rest); rb 328 http/ngx_http_request_body.c if (rb->rest == 0) { rb 348 http/ngx_http_request_body.c if (rb->temp_file || r->request_body_in_file_only) { rb 352 http/ngx_http_request_body.c if (ngx_http_write_request_body(r, rb->to_write) != NGX_OK) { rb 363 http/ngx_http_request_body.c b->file_last = rb->temp_file->file.offset; rb 364 http/ngx_http_request_body.c b->file = &rb->temp_file->file; rb 366 http/ngx_http_request_body.c if (rb->bufs->next) { rb 367 http/ngx_http_request_body.c rb->bufs->next->buf = b; rb 370 http/ngx_http_request_body.c rb->bufs->buf = b; rb 374 http/ngx_http_request_body.c if (r->request_body_in_file_only && rb->bufs->next) { rb 375 http/ngx_http_request_body.c rb->bufs = rb->bufs->next; rb 378 http/ngx_http_request_body.c rb->post_handler(r); rb 389 http/ngx_http_request_body.c ngx_http_request_body_t *rb; rb 392 http/ngx_http_request_body.c rb = r->request_body; rb 394 http/ngx_http_request_body.c if (rb->temp_file == NULL) { rb 415 http/ngx_http_request_body.c rb->temp_file = tf; rb 418 http/ngx_http_request_body.c n = ngx_write_chain_to_temp_file(rb->temp_file, body); rb 426 http/ngx_http_request_body.c rb->temp_file->offset += n;