mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 02:38:31 +00:00
Make more major improvements to redbean
- POSIX regular expressions for Lua - Improved protocol parsing and encoding - Additional APIs for ZIP storage retrieval - Fix st_mode issue on NT for regular files - Generalized APIs for URL and Host handling - Worked out the kinks in resource resolution - Allow for custom error pages like /404.html
This commit is contained in:
parent
26ac6871da
commit
4effa23528
74 changed files with 3710 additions and 14246 deletions
|
@ -8,12 +8,24 @@ struct EscapeResult {
|
|||
size_t size;
|
||||
};
|
||||
|
||||
extern const signed char kHexToInt[256];
|
||||
extern const char kEscapeAuthority[256];
|
||||
extern const char kEscapeIp[256];
|
||||
extern const char kEscapePath[256];
|
||||
extern const char kEscapeSegment[256];
|
||||
extern const char kEscapeParam[256];
|
||||
extern const char kEscapeFragment[256];
|
||||
|
||||
struct EscapeResult EscapeHtml(const char *, size_t);
|
||||
struct EscapeResult EscapeUrl(const char *, size_t, const char[hasatleast 256]);
|
||||
struct EscapeResult EscapeUrlPath(const char *, size_t);
|
||||
struct EscapeResult EscapeUrlParam(const char *, size_t);
|
||||
struct EscapeResult EscapeUrlFragment(const char *, size_t);
|
||||
struct EscapeResult EscapeUrlPathSegment(const char *, size_t);
|
||||
struct EscapeResult EscapeUser(const char *, size_t);
|
||||
struct EscapeResult EscapePass(const char *, size_t);
|
||||
struct EscapeResult EscapeIp(const char *, size_t);
|
||||
struct EscapeResult EscapeHost(const char *, size_t);
|
||||
struct EscapeResult EscapePath(const char *, size_t);
|
||||
struct EscapeResult EscapeParam(const char *, size_t);
|
||||
struct EscapeResult EscapeFragment(const char *, size_t);
|
||||
struct EscapeResult EscapeSegment(const char *, size_t);
|
||||
struct EscapeResult EscapeJsStringLiteral(const char *, size_t);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue