lsquic_frame_common.c revision a74702c6
1a74702c6SGeorge Wang/* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ 250aadb33SDmitri Tikhonov#include <stdint.h> 350aadb33SDmitri Tikhonov 450aadb33SDmitri Tikhonov#include "lsquic_frame_common.h" 550aadb33SDmitri Tikhonov 650aadb33SDmitri Tikhonov 750aadb33SDmitri Tikhonovconst char * 850aadb33SDmitri Tikhonovlsquic_http_setting_id2str (enum settings_param id) 950aadb33SDmitri Tikhonov{ 1050aadb33SDmitri Tikhonov switch (id) 1150aadb33SDmitri Tikhonov { 1250aadb33SDmitri Tikhonov case SETTINGS_HEADER_TABLE_SIZE: 1350aadb33SDmitri Tikhonov return "SETTINGS_HEADER_TABLE_SIZE"; 1450aadb33SDmitri Tikhonov case SETTINGS_ENABLE_PUSH: 1550aadb33SDmitri Tikhonov return "SETTINGS_ENABLE_PUSH"; 1650aadb33SDmitri Tikhonov case SETTINGS_MAX_CONCURRENT_STREAMS: 1750aadb33SDmitri Tikhonov return "SETTINGS_MAX_CONCURRENT_STREAMS"; 1850aadb33SDmitri Tikhonov case SETTINGS_INITIAL_WINDOW_SIZE: 1950aadb33SDmitri Tikhonov return "SETTINGS_INITIAL_WINDOW_SIZE"; 2050aadb33SDmitri Tikhonov case SETTINGS_MAX_FRAME_SIZE: 2150aadb33SDmitri Tikhonov return "SETTINGS_MAX_FRAME_SIZE"; 2250aadb33SDmitri Tikhonov case SETTINGS_MAX_HEADER_LIST_SIZE: 2350aadb33SDmitri Tikhonov return "SETTINGS_MAX_HEADER_LIST_SIZE"; 2450aadb33SDmitri Tikhonov } 2550aadb33SDmitri Tikhonov return "<unknown>"; 2650aadb33SDmitri Tikhonov} 27