Lines Matching defs:ah
208 struct allocated_headers *ah = wsi->http.ah;
210 if (!ah) {
211 lwsl_notice("%s: no ah\n", __func__);
215 ah->hdr_token_idx = -1;
217 lwsl_header("%s: token %d ah->pos = %d, ah->nfrag = %d\n",
218 __func__, hdr_token_idx, ah->pos, ah->nfrag);
225 if (ah->nfrag >= LWS_ARRAY_SIZE(ah->frag_index)) {
226 lwsl_err("%s: frag index %d too big\n", __func__, ah->nfrag);
235 ah->frag_index[hdr_token_idx]) {
236 if (!(ah->frags[ah->frag_index[hdr_token_idx]].flags & 1)) {
244 if (ah->nfrag == 0)
245 ah->nfrag = 1;
247 ah->frags[ah->nfrag].offset = ah->pos;
248 ah->frags[ah->nfrag].len = 0;
249 ah->frags[ah->nfrag].nfrag = 0;
250 ah->frags[ah->nfrag].flags = 2; /* we had reason to set it */
252 ah->hdr_token_idx = hdr_token_idx;
258 if (ah->frag_index[hdr_token_idx]) {
262 n = ah->frag_index[hdr_token_idx];
263 while (ah->frags[n].nfrag)
264 n = ah->frags[n].nfrag;
266 ah->frags[n].nfrag = ah->nfrag;
268 ah->frag_index[hdr_token_idx] = ah->nfrag;
275 struct allocated_headers *ah = wsi->http.ah;
277 ah->data[ah->pos++] = (char)c;
278 ah->frags[ah->nfrag].len++;
280 return (unsigned int)ah->pos >= wsi->a.context->max_http_header_data;
290 wsi->http.ah->frags[wsi->http.ah->nfrag].len--;
292 wsi->http.ah->nfrag++;
299 struct allocated_headers *ah = wsi->http.ah;
302 if (!ah)
305 n = ah->frag_index[h];
309 return !!(ah->frags[n].flags & 2);
828 struct allocated_headers *ah = wsi->http.ah;
855 ah->parser_state = 255;
1050 ah->parser_state = WSI_TOKEN_NAME_PART;
1051 ah->lextable_pos = 0;
1059 n = ah->parser_state;
1148 if (ah->hdr_token_idx ==
1231 ah->parser_state);
1233 if (ah->parser_state == WSI_TOKEN_NAME_PART) {
1241 if (ah->parser_state == WSI_TOKEN_NAME_PART ||
1243 ah->parser_state == WSI_TOKEN_UNKNOWN_VALUE_PART ||
1245 ah->parser_state == WSI_TOKEN_SKIPPING) {
1247 ah->parser_state = 0xff;
1290 m = ah->parser_state;
1292 ah->parser_state == WSI_TOKEN_NAME_PART ||
1293 ah->parser_state == WSI_TOKEN_SKIPPING) {
1297 ah->parser_state,
1312 ah->frags[ah->nfrag].flags |= 1;
1315 &ah->data[ah->frags[ah->nfrag].offset],
1316 ah->frags[ah->nfrag].len)) {
1334 m = ah->parser_state;