Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-04-01 17:30:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5bbb76a59d51e2fbffa5f80756edf75839278ad7
5bbb76a5
1 parent
1922d62f
remove the namespace srs, use http prefix
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
14 行增加
和
19 行删除
trunk/src/app/srs_app_http.cpp
trunk/src/app/srs_app_http.hpp
trunk/src/app/srs_app_http.cpp
查看文件 @
5bbb76a
...
...
@@ -38,8 +38,6 @@ using namespace std;
#include <srs_kernel_log.hpp>
#include <srs_app_socket.hpp>
using
namespace
srs
;
#define SRS_DEFAULT_HTTP_PORT 80
#define SRS_HTTP_RESPONSE_OK "0"
...
...
trunk/src/app/srs_app_http.hpp
查看文件 @
5bbb76a
...
...
@@ -34,23 +34,20 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifdef SRS_HTTP_PARSER
// http specification
namespace
srs
{
// CR = <US-ASCII CR, carriage return (13)>
#define __CR "\r" // 0x0D
// LF = <US-ASCII LF, linefeed (10)>
#define __LF "\n" // 0x0A
// SP = <US-ASCII SP, space (32)>
#define __SP " " // 0x20
// HT = <US-ASCII HT, horizontal-tab (9)>
#define __HT "\x09" // 0x09
// HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all
// protocol elements except the entity-body (see appendix 19.3 for
// tolerant applications).
#define __CRLF "\r\n" // 0x0D0A
#define __CRLFCRLF "\r\n\r\n" // 0x0D0A0D0A
};
// CR = <US-ASCII CR, carriage return (13)>
#define __CR "\r" // 0x0D
// LF = <US-ASCII LF, linefeed (10)>
#define __LF "\n" // 0x0A
// SP = <US-ASCII SP, space (32)>
#define __SP " " // 0x20
// HT = <US-ASCII HT, horizontal-tab (9)>
#define __HT "\x09" // 0x09
// HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all
// protocol elements except the entity-body (see appendix 19.3 for
// tolerant applications).
#define __CRLF "\r\n" // 0x0D0A
#define __CRLFCRLF "\r\n\r\n" // 0x0D0A0D0A
#endif
...
...
请
注册
或
登录
后发表评论