sister
Loading...
Searching...
No Matches
i4httools.h
Go to the documentation of this file.
1
10
#ifndef I4HTTOOLS_H
11
#define I4HTTOOLS_H
12
13
#include <stdio.h>
14
15
29
int
checkPath
(
const
char
path[]);
30
39
void
httpOK
(FILE *tx);
40
54
void
httpMovedPermanently
(FILE *tx,
const
char
newRelPath[]);
55
65
void
httpBadRequest
(FILE *tx);
66
77
void
httpForbidden
(FILE *tx,
const
char
relPath[]);
78
89
void
httpNotFound
(FILE *tx,
const
char
relPath[]);
90
102
void
httpInternalServerError
(FILE *tx,
const
char
relPath[]);
103
104
#endif
/* I4HTTOOLS_H */
httpForbidden
void httpForbidden(FILE *tx, const char relPath[])
Outputs a "forbidden" HTTP response and error page to a stream.
httpMovedPermanently
void httpMovedPermanently(FILE *tx, const char newRelPath[])
Outputs a "moved permanently" HTTP response and error page to a stream.
checkPath
int checkPath(const char path[])
Checks if a path leaves the webserver's document-root (wwwpath).
httpNotFound
void httpNotFound(FILE *tx, const char relPath[])
Outputs a "not found" HTTP response and error page to a stream.
httpOK
void httpOK(FILE *tx)
Outputs an "OK" HTTP response to a stream.
httpInternalServerError
void httpInternalServerError(FILE *tx, const char relPath[])
Outputs an "internal server error" HTTP response and error page to a stream.
httpBadRequest
void httpBadRequest(FILE *tx)
Outputs a "bad request" HTTP response and error page to a stream.
Generated on Wed Dec 17 2025 11:20:10 for sister by
1.9.8