Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit 83cde96

Browse files
committed
Add message module.
1 parent 2548561 commit 83cde96

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

message.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include "http.h"
2+
3+
struct http_message_s {
4+
unsigned short http_version_major, http_version_minor;
5+
enum http_message_type type;
6+
};
7+
8+
int http_message_get_type(http_message* msg) {
9+
return msg->type;
10+
}
11+

0 commit comments

Comments
 (0)