Searched refs:preface (Results 1 – 1 of 1) sorted by relevance
| /f-stack/app/nginx-1.16.1/src/http/v2/ |
| H A D | ngx_http_v2.c | 714 static const u_char preface[] = "PRI * HTTP/2.0\r\n"; in ngx_http_v2_state_preface() local 716 if ((size_t) (end - pos) < sizeof(preface) - 1) { in ngx_http_v2_state_preface() 720 if (ngx_memcmp(pos, preface, sizeof(preface) - 1) != 0) { in ngx_http_v2_state_preface() 723 sizeof(preface) - 1, pos); in ngx_http_v2_state_preface() 728 return ngx_http_v2_state_preface_end(h2c, pos + sizeof(preface) - 1, end); in ngx_http_v2_state_preface() 736 static const u_char preface[] = "\r\nSM\r\n\r\n"; in ngx_http_v2_state_preface_end() local 738 if ((size_t) (end - pos) < sizeof(preface) - 1) { in ngx_http_v2_state_preface_end() 743 if (ngx_memcmp(pos, preface, sizeof(preface) - 1) != 0) { in ngx_http_v2_state_preface_end() 746 sizeof(preface) - 1, pos); in ngx_http_v2_state_preface_end() 754 return ngx_http_v2_state_head(h2c, pos + sizeof(preface) - 1, end); in ngx_http_v2_state_preface_end()
|