1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00
srs/trunk/src/app/srs_app_refer.hpp
Winlin c8a1e0f3da
Refine AUTHORS.txt to AUTHORS.md, etc. 5.0.8 (#2464)
* Refine AUTHORS.txt to AUTHORS.md, etc. 5.0.8

* Update README.md

* Update README.md

* Refine format for AUTHORS.md
2021-07-08 14:30:47 +08:00

30 lines
573 B
C++

//
// Copyright (c) 2013-2021 The SRS Authors
//
// SPDX-License-Identifier: MIT
//
#ifndef SRS_APP_REFER_HPP
#define SRS_APP_REFER_HPP
#include <srs_core.hpp>
#include <string>
class SrsConfDirective;
class SrsRefer
{
public:
SrsRefer();
virtual ~SrsRefer();
public:
// Check the refer.
// @param page_url the client page url.
// @param refer the refer in config.
virtual srs_error_t check(std::string page_url, SrsConfDirective* refer);
private:
virtual srs_error_t check_single_refer(std::string page_url, std::string refer);
};
#endif