Main Page
Files
File List
Globals
All
Files
Functions
Typedefs
i4httools.h
Go to the documentation of this file.
1
9
#ifndef I4HTTOOLS_H
10
#define I4HTTOOLS_H
11
12
#include <stdio.h>
13
14
27
int
checkPath
(
const
char
relPath[]);
28
37
void
httpOK
(FILE *tx);
38
52
void
httpMovedPermanently
(FILE *tx,
const
char
newRelPath[]);
53
63
void
httpBadRequest
(FILE *tx);
64
75
void
httpForbidden
(FILE *tx,
const
char
relPath[]);
76
87
void
httpNotFound
(FILE *tx,
const
char
relPath[]);
88
100
void
httpInternalServerError
(FILE *tx,
const
char
relPath[]);
101
102
#endif
/* I4HTTOOLS_H */
httpNotFound
void httpNotFound(FILE *tx, const char relPath[])
Outputs a "not found" HTTP response and error page to a stream.
httpInternalServerError
void httpInternalServerError(FILE *tx, const char relPath[])
Outputs an "internal server error" HTTP response and error page to a stream.
httpForbidden
void httpForbidden(FILE *tx, const char relPath[])
Outputs a "forbidden" HTTP response and error page to a stream.
httpOK
void httpOK(FILE *tx)
Outputs an "OK" HTTP response to a stream.
httpBadRequest
void httpBadRequest(FILE *tx)
Outputs a "bad request" 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 relPath[])
Checks if a relative path leaves the root directory.
Generated on Tue Jun 20 2017 11:28:53 by
1.8.8