mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 14:09:12 +00:00
Add some noexcept annotations
This commit is contained in:
parent
fae1c32267
commit
ea081b262c
9 changed files with 89 additions and 80 deletions
|
@ -180,30 +180,31 @@ struct HttpUnchunker {
|
|||
extern const char kHttpToken[256];
|
||||
extern const bool kHttpRepeatable[kHttpHeadersMax];
|
||||
|
||||
const char *GetHttpReason(int);
|
||||
const char *GetHttpHeaderName(int);
|
||||
int GetHttpHeader(const char *, size_t);
|
||||
void InitHttpMessage(struct HttpMessage *, int);
|
||||
void DestroyHttpMessage(struct HttpMessage *);
|
||||
int ParseHttpMessage(struct HttpMessage *, const char *, size_t);
|
||||
bool HeaderHas(struct HttpMessage *, const char *, int, const char *, size_t);
|
||||
int64_t ParseContentLength(const char *, size_t);
|
||||
char *FormatHttpDateTime(char[hasatleast 30], struct tm *);
|
||||
bool ParseHttpRange(const char *, size_t, long, long *, long *);
|
||||
int64_t ParseHttpDateTime(const char *, size_t);
|
||||
uint64_t ParseHttpMethod(const char *, size_t);
|
||||
bool IsValidHttpToken(const char *, size_t);
|
||||
bool IsValidCookieValue(const char *, size_t);
|
||||
bool IsAcceptablePath(const char *, size_t);
|
||||
bool IsAcceptableHost(const char *, size_t);
|
||||
bool IsAcceptablePort(const char *, size_t);
|
||||
bool IsReasonablePath(const char *, size_t);
|
||||
int ParseForwarded(const char *, size_t, uint32_t *, uint16_t *);
|
||||
bool IsMimeType(const char *, size_t, const char *);
|
||||
ssize_t Unchunk(struct HttpUnchunker *, char *, size_t, size_t *);
|
||||
const char *FindContentType(const char *, size_t);
|
||||
bool IsNoCompressExt(const char *, size_t);
|
||||
char *FoldHeader(struct HttpMessage *, const char *, int, size_t *);
|
||||
const char *GetHttpReason(int) libcesque;
|
||||
const char *GetHttpHeaderName(int) libcesque;
|
||||
int GetHttpHeader(const char *, size_t) libcesque;
|
||||
void InitHttpMessage(struct HttpMessage *, int) libcesque;
|
||||
void DestroyHttpMessage(struct HttpMessage *) libcesque;
|
||||
int ParseHttpMessage(struct HttpMessage *, const char *, size_t) libcesque;
|
||||
bool HeaderHas(struct HttpMessage *, const char *, int, const char *,
|
||||
size_t) libcesque;
|
||||
int64_t ParseContentLength(const char *, size_t) libcesque;
|
||||
char *FormatHttpDateTime(char[hasatleast 30], struct tm *) libcesque;
|
||||
bool ParseHttpRange(const char *, size_t, long, long *, long *) libcesque;
|
||||
int64_t ParseHttpDateTime(const char *, size_t) libcesque;
|
||||
uint64_t ParseHttpMethod(const char *, size_t) libcesque;
|
||||
bool IsValidHttpToken(const char *, size_t) libcesque;
|
||||
bool IsValidCookieValue(const char *, size_t) libcesque;
|
||||
bool IsAcceptablePath(const char *, size_t) libcesque;
|
||||
bool IsAcceptableHost(const char *, size_t) libcesque;
|
||||
bool IsAcceptablePort(const char *, size_t) libcesque;
|
||||
bool IsReasonablePath(const char *, size_t) libcesque;
|
||||
int ParseForwarded(const char *, size_t, uint32_t *, uint16_t *) libcesque;
|
||||
bool IsMimeType(const char *, size_t, const char *) libcesque;
|
||||
ssize_t Unchunk(struct HttpUnchunker *, char *, size_t, size_t *) libcesque;
|
||||
const char *FindContentType(const char *, size_t) libcesque;
|
||||
bool IsNoCompressExt(const char *, size_t) libcesque;
|
||||
char *FoldHeader(struct HttpMessage *, const char *, int, size_t *) libcesque;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* COSMOPOLITAN_LIBC_HTTP_HTTP_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue