mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 19:58:30 +00:00
Make major improvements to redbean
- lua server pages - lua http library - http v0.9 support - request uri parsing - fork failure recovery - accelerated redirects - http pipelining support - lenient message framing - html / uri / js escaping - fix shutdown signal handling
This commit is contained in:
parent
6b90ff60cd
commit
09bcfa23d5
23 changed files with 2208 additions and 581 deletions
21
net/http/escape.h
Normal file
21
net/http/escape.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef COSMOPOLITAN_NET_HTTP_ESCAPE_H_
|
||||
#define COSMOPOLITAN_NET_HTTP_ESCAPE_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct EscapeResult {
|
||||
char *data;
|
||||
size_t size;
|
||||
};
|
||||
|
||||
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 EscapeJsStringLiteral(const char *, size_t);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_NET_HTTP_ESCAPE_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue