Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
a70aa8f9
提交
a70aa8f9
authored
1月 24, 2013
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add parsers for web socket headers
上级
b1c855e1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
42 行增加
和
0 行删除
+42
-0
http_basic.c
libs/sofia-sip/libsofia-sip-ua/http/http_basic.c
+32
-0
http.h
libs/sofia-sip/libsofia-sip-ua/http/sofia-sip/http.h
+10
-0
没有找到文件。
libs/sofia-sip/libsofia-sip-ua/http/http_basic.c
浏览文件 @
a70aa8f9
...
...
@@ -1464,6 +1464,38 @@ HTTP_HEADER_CLASS_LIST(transfer_encoding, "Transfer-Encoding", list_critical);
msg_hclass_t
http_upgrade_class
[]
=
HTTP_HEADER_CLASS_LIST
(
upgrade
,
"Upgrade"
,
list_critical
);
/* ====================================================================== */
/**@HTTP_HEADER http_sec_websocket_key Sec-WebSocket-Key header. */
#define http_sec_websocket_key_d msg_generic_d
#define http_sec_websocket_key_e msg_generic_e
msg_hclass_t
http_sec_websocket_key_class
[]
=
HTTP_HEADER_CLASS_G
(
sec_websocket_key
,
"Sec-WebSocket-Key"
,
single
);
/* ====================================================================== */
/**@HTTP_HEADER http_sec_websocket_protocol Sec-WebSocket-Protocol header. */
#define http_sec_websocket_protocol_d msg_generic_d
#define http_sec_websocket_protocol_e msg_generic_e
msg_hclass_t
http_sec_websocket_protocol_class
[]
=
HTTP_HEADER_CLASS_G
(
sec_websocket_protocol
,
"Sec-WebSocket-Protocol"
,
single
);
/* ====================================================================== */
/**@HTTP_HEADER http_sec_websocket_version Sec-WebSocket-Version header. */
#define http_sec_websocket_version_d msg_generic_d
#define http_sec_websocket_version_e msg_generic_e
msg_hclass_t
http_sec_websocket_version_class
[]
=
HTTP_HEADER_CLASS_G
(
sec_websocket_version
,
"Sec-WebSocket-Version"
,
single
);
/* ====================================================================== */
/**@HTTP_HEADER http_origin Origin header. */
#define http_origin_d msg_generic_d
#define http_origin_e msg_generic_e
msg_hclass_t
http_origin_class
[]
=
HTTP_HEADER_CLASS_G
(
origin
,
"Origin"
,
single
);
/* ====================================================================== */
/**@HTTP_HEADER http_user_agent User-Agent header. */
...
...
libs/sofia-sip/libsofia-sip-ua/http/sofia-sip/http.h
浏览文件 @
a70aa8f9
...
...
@@ -158,6 +158,11 @@ typedef msg_auth_t http_www_authenticate_t;
typedef
msg_list_t
http_proxy_connection_t
;
typedef
msg_generic_t
http_sec_websocket_key_t
;
typedef
msg_generic_t
http_origin_t
;
typedef
msg_generic_t
http_sec_websocket_protocol_t
;
typedef
msg_generic_t
http_sec_websocket_version_t
;
typedef
struct
http_set_cookie_s
http_set_cookie_t
;
typedef
struct
http_cookie_s
http_cookie_t
;
...
...
@@ -382,6 +387,11 @@ struct http_s {
http_set_cookie_t
*
http_set_cookie
;
/**< Set-Cookie */
http_cookie_t
*
http_cookie
;
/**< Cookie */
http_sec_websocket_key_t
*
http_sec_websocket_key
;
/**< Sec-Websocket-Key */
http_origin_t
*
http_origin
;
/**< Origin */
http_sec_websocket_protocol_t
*
http_sec_websocket_protocol
;
/**< Sec-Websocket-Protocol */
http_sec_websocket_version_t
*
http_sec_websocket_version
;
/**< Sec-Websocket-Version */
http_mime_version_t
*
http_mime_version
;
/**< MIME-Version */
http_content_encoding_t
*
http_content_encoding
;
/**< Content-Encoding */
http_content_language_t
*
http_content_language
;
/**< Content-Language */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论