Rename http_message.h to http_types.h

This commit is contained in:
Nick Krichevsky 2018-08-29 21:57:35 -04:00
parent b89ec823b8
commit 533f695dcb
3 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,5 @@
#include "http_client.h"
#include "../common/http_message.h"
#include "../common/http_types.h"
#include "http_socket.h"
#include <stdbool.h>
#include <stdio.h>

View file

@ -1,7 +1,7 @@
#ifndef HTTP_SOCKET_H
#define HTTP_SOCKET_H
#include "../common/http_message.h"
#include "../common/http_types.h"
#define HTTP_VERSION "HTTP/1.1"
#define MIN_PORT 1

View file

@ -1,9 +1,11 @@
#ifndef HTTP_MESSAGE_H
#define HTTP_MESSAGE_H
#ifndef HTTP_TYPES_H
#define HTTP_TYPES_H
struct http_message {
char *address;
int port;
char *path;
char *contents;
};
#endif