Lines Matching refs:linebuf
43 serf_linebuf_t linebuf;
89 serf_linebuf_init(&ctx->linebuf);
127 return serf_linebuf_fetch(&ctx->linebuf, ctx->stream, acceptable);
137 if (ctx->linebuf.used >= SERF_LINEBUF_LIMIT) {
142 ctx->linebuf.line[ctx->linebuf.used] = '\0';
144 /* ctx->linebuf.line should be of form: 'HTTP/1.1 200 OK',
147 res = apr_date_checkmask(ctx->linebuf.line, "HTTP/#.# ###*");
153 ctx->sl.version = SERF_HTTP_VERSION(ctx->linebuf.line[5] - '0',
154 ctx->linebuf.line[7] - '0');
155 ctx->sl.code = apr_strtoi64(ctx->linebuf.line + 8, &reason, 10);
164 ctx->linebuf.used
165 - (reason - ctx->linebuf.line));
184 if (ctx->linebuf.state == SERF_LINEBUF_READY && ctx->linebuf.used) {
188 end_key = c = memchr(ctx->linebuf.line, ':', ctx->linebuf.used);
198 for(; c < ctx->linebuf.line + ctx->linebuf.used; c++)
206 /* Always copy the headers (from the linebuf into new mem). */
210 ctx->linebuf.line, end_key - ctx->linebuf.line, 1,
211 c, ctx->linebuf.line + ctx->linebuf.used - c, 1);
238 if (ctx->linebuf.state == SERF_LINEBUF_READY) {
273 if (ctx->linebuf.state == SERF_LINEBUF_READY && !ctx->linebuf.used) {
337 if (ctx->linebuf.state == SERF_LINEBUF_READY && !ctx->linebuf.used) {