Home
last modified time | relevance | path

Searched refs:header_buffer (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_http1.c601 size_t offset = strnlen(ctx->header_buffer, sizeof(ctx->header_buffer)); in on_header_field()
603 if (offset + length > sizeof(ctx->header_buffer) - 1U) { in on_header_field()
605 offset + length - sizeof(ctx->header_buffer) - 1U); in on_header_field()
606 ctx->header_buffer[0] = '\0'; in on_header_field()
608 memcpy(ctx->header_buffer + offset, at, length); in on_header_field()
610 ctx->header_buffer[offset] = '\0'; in on_header_field()
618 ctx->header_buffer); in on_header_field()
621 if (strcasecmp(ctx->header_buffer, "Upgrade") == 0) { in on_header_field()
623 } else if (strcasecmp(ctx->header_buffer, "Sec-WebSocket-Key") == 0) { in on_header_field()
627 ctx->header_buffer[0] = '\0'; in on_header_field()
[all …]
/Zephyr-latest/include/zephyr/net/http/
Dserver.h448 unsigned char header_buffer[HTTP_SERVER_MAX_HEADER_LEN]; member