mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
更新
This commit is contained in:
parent
923477dcad
commit
50f7050ea9
@ -38,6 +38,8 @@
|
|||||||
- 客户端提供`文件下载器(支持断点续传)`,`接口请求器`,`文件上传器`。
|
- 客户端提供`文件下载器(支持断点续传)`,`接口请求器`,`文件上传器`。
|
||||||
- 完整HTTP API服务器,可以作为web后台开发框架。
|
- 完整HTTP API服务器,可以作为web后台开发框架。
|
||||||
- 支持跨域访问。
|
- 支持跨域访问。
|
||||||
|
- 客户端支持cookie
|
||||||
|
- 支持WebSocket服务器
|
||||||
|
|
||||||
- 其他
|
- 其他
|
||||||
- 支持输入YUV+PCM自动生成RTSP/RTMP/HLS/MP4.
|
- 支持输入YUV+PCM自动生成RTSP/RTMP/HLS/MP4.
|
||||||
|
@ -1,11 +1,36 @@
|
|||||||
//
|
/*
|
||||||
// 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 "HttpCookie.h"
|
||||||
#include "Util/util.h"
|
#include "Util/util.h"
|
||||||
using namespace ZL::Util;
|
using namespace ZL::Util;
|
||||||
|
|
||||||
|
namespace ZL {
|
||||||
|
namespace Http {
|
||||||
|
|
||||||
void HttpCookie::setPath(const string &path){
|
void HttpCookie::setPath(const string &path){
|
||||||
_path = path;
|
_path = path;
|
||||||
}
|
}
|
||||||
@ -77,3 +102,7 @@ vector<HttpCookie::Ptr> HttpCookieStorage::get(const string &host, const string
|
|||||||
lam(path);
|
lam(path);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
} /* namespace Http */
|
||||||
|
} /* namespace ZL */
|
||||||
|
@ -1,6 +1,28 @@
|
|||||||
//
|
/*
|
||||||
// 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
|
#ifndef ZLMEDIAKIT_HTTPCOOKIE_H
|
||||||
#define ZLMEDIAKIT_HTTPCOOKIE_H
|
#define ZLMEDIAKIT_HTTPCOOKIE_H
|
||||||
@ -12,6 +34,9 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
namespace ZL {
|
||||||
|
namespace Http {
|
||||||
|
|
||||||
class HttpCookie {
|
class HttpCookie {
|
||||||
public:
|
public:
|
||||||
typedef std::shared_ptr<HttpCookie> Ptr;
|
typedef std::shared_ptr<HttpCookie> Ptr;
|
||||||
@ -49,4 +74,8 @@ private:
|
|||||||
mutex _mtx_cookie;
|
mutex _mtx_cookie;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
} /* namespace Http */
|
||||||
|
} /* namespace ZL */
|
||||||
|
|
||||||
#endif //ZLMEDIAKIT_HTTPCOOKIE_H
|
#endif //ZLMEDIAKIT_HTTPCOOKIE_H
|
||||||
|
@ -144,7 +144,7 @@ protected:
|
|||||||
bool mask_flag = _mask_flag;
|
bool mask_flag = _mask_flag;
|
||||||
_mask_flag = false;
|
_mask_flag = false;
|
||||||
WebSocketSplitter::encode((uint8_t *)ptr,len);
|
WebSocketSplitter::encode((uint8_t *)ptr,len);
|
||||||
_mask_flag = true;
|
_mask_flag = mask_flag;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user