NetDisk/http.h
2018-08-01 01:53:49 -05:00

23 lines
530 B
C

#ifndef HTTP_H
#define HTTP_H
#include <types.h>
#include "session.h"
enum RequestResult {
REQUEST_SUCCESSFUL = 0,
NETWORK_ERROR,
NO_RESPONSE,
INVALID_RESPONSE,
EXCESSIVE_REDIRECTS,
UNSUPPORTED_RESPONSE,
UNSUPPORTED_HEADER_VALUE,
REDIRECT_ERROR,
NOT_DESIRED_CONTENT,
DIFFERENT_LENGTH, /* Might be considered successful later */
};
Boolean BuildHTTPRequest(Session *sess, char *resourceStr);
enum RequestResult DoHTTPRequest(Session *sess, unsigned long start, unsigned long end);
#endif