1/* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc.  See LICENSE. */
2#include <stdint.h>
3
4#include "lsquic_frame_common.h"
5
6
7const char *
8lsquic_http_setting_id2str (enum settings_param id)
9{
10    switch (id)
11    {
12    case SETTINGS_HEADER_TABLE_SIZE:
13        return "SETTINGS_HEADER_TABLE_SIZE";
14    case SETTINGS_ENABLE_PUSH:
15        return "SETTINGS_ENABLE_PUSH";
16    case SETTINGS_MAX_CONCURRENT_STREAMS:
17        return "SETTINGS_MAX_CONCURRENT_STREAMS";
18    case SETTINGS_INITIAL_WINDOW_SIZE:
19        return "SETTINGS_INITIAL_WINDOW_SIZE";
20    case SETTINGS_MAX_FRAME_SIZE:
21        return "SETTINGS_MAX_FRAME_SIZE";
22    case SETTINGS_MAX_HEADER_LIST_SIZE:
23        return "SETTINGS_MAX_HEADER_LIST_SIZE";
24    }
25    return "<unknown>";
26}
27