Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
50f7050e
Commit
50f7050e
authored
Sep 25, 2018
by
xiongziliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
923477dc
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
67 行增加
和
7 行删除
+67
-7
README.md
+2
-0
src/Http/HttpCookie.cpp
+32
-3
src/Http/HttpCookie.h
+32
-3
src/Http/HttpSession.h
+1
-1
没有找到文件。
README.md
查看文件 @
50f7050e
...
...
@@ -38,6 +38,8 @@
-
客户端提供
`文件下载器(支持断点续传)`
,
`接口请求器`
,
`文件上传器`
。
-
完整HTTP API服务器,可以作为web后台开发框架。
-
支持跨域访问。
-
客户端支持cookie
-
支持WebSocket服务器
-
其他
-
支持输入YUV+PCM自动生成RTSP/RTMP/HLS/MP4.
...
...
src/Http/HttpCookie.cpp
查看文件 @
50f7050e
//
// Created by xzl on 2018/9/23.
//
/*
* MIT License
*
* Copyright (c) 2016 xiongziliang <771730766@qq.com>
*
* This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#include "HttpCookie.h"
#include "Util/util.h"
using
namespace
ZL
::
Util
;
namespace
ZL
{
namespace
Http
{
void
HttpCookie
::
setPath
(
const
string
&
path
){
_path
=
path
;
}
...
...
@@ -77,3 +102,7 @@ vector<HttpCookie::Ptr> HttpCookieStorage::get(const string &host, const string
lam
(
path
);
return
ret
;
}
}
/* namespace Http */
}
/* namespace ZL */
src/Http/HttpCookie.h
查看文件 @
50f7050e
//
// Created by xzl on 2018/9/23.
//
/*
* MIT License
*
* Copyright (c) 2016 xiongziliang <771730766@qq.com>
*
* This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef ZLMEDIAKIT_HTTPCOOKIE_H
#define ZLMEDIAKIT_HTTPCOOKIE_H
...
...
@@ -12,6 +34,9 @@
#include <mutex>
using
namespace
std
;
namespace
ZL
{
namespace
Http
{
class
HttpCookie
{
public
:
typedef
std
::
shared_ptr
<
HttpCookie
>
Ptr
;
...
...
@@ -49,4 +74,8 @@ private:
mutex
_mtx_cookie
;
};
}
/* namespace Http */
}
/* namespace ZL */
#endif //ZLMEDIAKIT_HTTPCOOKIE_H
src/Http/HttpSession.h
查看文件 @
50f7050e
...
...
@@ -144,7 +144,7 @@ protected:
bool
mask_flag
=
_mask_flag
;
_mask_flag
=
false
;
WebSocketSplitter
::
encode
((
uint8_t
*
)
ptr
,
len
);
_mask_flag
=
true
;
_mask_flag
=
mask_flag
;
};
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论