mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine macros of HTTP
This commit is contained in:
parent
198a7f1e9d
commit
573952e2fc
15 changed files with 97 additions and 88 deletions
|
@ -48,19 +48,19 @@ class SrsHttpHandler;
|
|||
|
||||
// http specification
|
||||
// CR = <US-ASCII CR, carriage return (13)>
|
||||
#define __CR "\r" // 0x0D
|
||||
#define __SRS_CR "\r" // 0x0D
|
||||
// LF = <US-ASCII LF, linefeed (10)>
|
||||
#define __LF "\n" // 0x0A
|
||||
#define __SRS_LF "\n" // 0x0A
|
||||
// SP = <US-ASCII SP, space (32)>
|
||||
#define __SP " " // 0x20
|
||||
#define __SRS_SP " " // 0x20
|
||||
// HT = <US-ASCII HT, horizontal-tab (9)>
|
||||
#define __HT "\x09" // 0x09
|
||||
#define __SRS_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
|
||||
#define __SRS_CRLF "\r\n" // 0x0D0A
|
||||
#define __SRS_CRLFCRLF "\r\n\r\n" // 0x0D0A0D0A
|
||||
|
||||
// 6.1.1 Status Code and Reason Phrase
|
||||
#define HTTP_Continue 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue