Lines Matching defs:pos

56 static u_char *ngx_http_v2_write_int(u_char *pos, ngx_uint_t prefix,
59 ngx_http_request_t *r, u_char *pos, u_char *end);
129 u_char status, *pos, *start, *p, *tmp;
414 pos = ngx_pnalloc(r->pool, len);
416 if (pos == NULL || tmp == NULL) {
420 start = pos;
427 *pos++ = status;
430 *pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_STATUS_INDEX);
431 *pos++ = NGX_HTTP_V2_ENCODE_RAW | 3;
432 pos = ngx_sprintf(pos, "%03ui", r->headers_out.status);
452 *pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_SERVER_INDEX);
461 pos = ngx_cpymem(pos, nginx_ver, nginx_ver_len);
471 pos = ngx_cpymem(pos, nginx_ver_build, nginx_ver_build_len);
474 pos = ngx_cpymem(pos, nginx, sizeof(nginx));
483 *pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_DATE_INDEX);
484 pos = ngx_http_v2_write_value(pos, ngx_cached_http_time.data,
489 *pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_CONTENT_TYPE_INDEX);
520 pos = ngx_http_v2_write_value(pos, r->headers_out.content_type.data,
531 *pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_CONTENT_LENGTH_INDEX);
533 p = pos;
534 pos = ngx_sprintf(pos + 1, "%O", r->headers_out.content_length_n);
535 *p = NGX_HTTP_V2_ENCODE_RAW | (u_char) (pos - p - 1);
541 *pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_LAST_MODIFIED_INDEX);
543 ngx_http_time(pos, r->headers_out.last_modified_time);
548 len, pos);
554 pos = ngx_http_v2_write_value(pos, pos, len, tmp);
562 *pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_LOCATION_INDEX);
563 pos = ngx_http_v2_write_value(pos, r->headers_out.location->value.data,
572 *pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_VARY_INDEX);
573 pos = ngx_cpymem(pos, accept_encoding, sizeof(accept_encoding));
606 *pos++ = 0;
608 pos = ngx_http_v2_write_name(pos, header[i].key.data,
611 pos = ngx_http_v2_write_value(pos, header[i].value.data,
615 frame = ngx_http_v2_create_headers_frame(r, start, pos);
666 ngx_http_v2_write_int(u_char *pos, ngx_uint_t prefix, ngx_uint_t value)
669 *pos++ |= value;
670 return pos;
673 *pos++ |= prefix;
677 *pos++ = value % 128 + 128;
681 *pos++ = (u_char) value;
683 return pos;
688 ngx_http_v2_create_headers_frame(ngx_http_request_t *r, u_char *pos,
699 rest = end - pos;
750 b->pos = pos;
752 pos += frame_size;
754 b->last = pos;
755 b->start = b->pos;
852 ? (cl->buf->pos - in->buf->pos)
1003 chunk->pos += offset;
1004 chunk->last = chunk->pos + size;
1066 buf->pos = buf->start;
1067 buf->last = buf->pos;
1182 if (cl->buf->pos != cl->buf->last) {
1238 if (cl->buf->pos != cl->buf->last) {
1263 buf->pos = cl->buf->pos;