/*
 * context_info.h
 *
 * Context Information
 */

#ifndef _OpenAPI_context_info_H_
#define _OpenAPI_context_info_H_

#include <string.h>
#include "third-party/cjson/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct OpenAPI_context_info_s OpenAPI_context_info_t;

#ifdef __cplusplus
extern "C" {
#endif

struct OpenAPI_context_info_s {
    OpenAPI_list_t *orig_headers;
    OpenAPI_list_t *request_headers;
};

OpenAPI_context_info_t *OpenAPI_context_info_create(
    OpenAPI_list_t *orig_headers,
    OpenAPI_list_t *request_headers
);
void OpenAPI_context_info_free(OpenAPI_context_info_t *context_info);
OpenAPI_context_info_t *OpenAPI_context_info_parseFromJSON(cJSON *context_infoJSON);
cJSON *OpenAPI_context_info_convertToJSON(OpenAPI_context_info_t *context_info);
OpenAPI_context_info_t *OpenAPI_context_info_copy(OpenAPI_context_info_t *dst, OpenAPI_context_info_t *src);

#ifdef __cplusplus
}
#endif

#endif /* _OpenAPI_context_info_H_ */

