代码拉取完成,页面将自动刷新
同步操作将从 zentel/libghttps 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
* http_hdrs.h -- This file contains declarations for http headers
* Created: Christopher Blizzard <blizzard@appliedtheory.com>, 3-Aug-1998
*
* Copyright (C) 1998 Free Software Foundation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef HTTP_HDRS_H
#define HTTP_HDRS_H
#include "ghttp_constants.h"
#ifdef _WIN32
#define strcasecmp strcmp
#endif
/* the list of known headers */
extern const char *http_hdr_known_list[];
/* a header list */
#define HTTP_HDRS_MAX 256
typedef struct http_hdr_list_tag
{
char *header[HTTP_HDRS_MAX];
char *value[HTTP_HDRS_MAX];
} http_hdr_list;
/* functions dealing with headers */
/* check to see if the library knows about the header */
const char *
http_hdr_is_known(const char *a_hdr);
/* create a new list */
http_hdr_list *
http_hdr_list_new(void);
/* destroy a list */
void
http_hdr_list_destroy(http_hdr_list *a_list);
/* set a value in a list */
int
http_hdr_set_value(http_hdr_list *a_list,
const char *a_name,
const char *a_val);
/* set the value in a list from a range, not a NTS */
int
http_hdr_set_value_no_nts(http_hdr_list *a_list,
const char *a_name_start,
int a_name_len,
const char *a_val_start,
int a_val_len);
/* get a copy of a value in a list */
char *
http_hdr_get_value(http_hdr_list *a_list,
const char *a_name);
/* get a copy of the headers in a list */
int
http_hdr_get_headers(http_hdr_list *a_list,
char ***a_names,
int *a_num_names);
/* clear a header in a list */
int
http_hdr_clear_value(http_hdr_list *a_list,
const char *a_name);
#endif /* HTTP_HDRS_H */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。