1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- typedef struct HSPriv HSPriv;
- enum
- {
- HSTIMEOUT = 15 * 60 * 1000,
- /* rewrite replacement field modifiers */
- Modsilent = '@',
- Modperm = '=',
- };
- struct HSPriv
- {
- char *remotesys;
- char *remoteserv;
- };
- extern int logall[3];
- extern char* HTTPLOG;
- extern char* webroot;
- extern char* netdir;
- #define STRLEN(s) (sizeof(s)-1)
- /* emem.c */
- char *estrdup(char*);
- void* ezalloc(ulong);
- /* sendfd.c */
- int authcheck(HConnect *c);
- int checkreq(HConnect *c, HContent *type, HContent *enc, long mtime, char *etag);
- int etagmatch(int, HETag*, char*);
- HRange *fixrange(HRange *h, long length);
- int sendfd(HConnect *c, int fd, Dir *dir, HContent *type, HContent *enc);
- /* content.c */
- void contentinit(void);
- HContents dataclass(HConnect *, char*, int);
- int updateQid(int, Qid*);
- HContents uriclass(HConnect *, char*);
- /* anonymous.c */
- void anonymous(HConnect*);
- /* hint.c */
- void hintprint(HConnect *hc, Hio*, char *, int, int);
- void statsinit(void);
- void urlcanon(char *url);
- void urlinit(void);
- /* init.c */
- HConnect* init(int, char**);
- vlong Bfilelen(void*);
- /* redirect.c */
- void redirectinit(void);
- char* redirect(HConnect *hc, char*);
- char* masquerade(char*);
- char* authrealm(HConnect *hc, char *path);
- int isdecorated(char *repl);
- char *undecorated(char *repl);
- /* log.c */
- void logit(HConnect*, char*, ...);
- #pragma varargck argpos logit 2
- void writelog(HConnect*, char*, ...);
- #pragma varargck argpos writelog 2
- /* authorize.c */
- int authorize(HConnect*, char*);
|