Serwer/ws_utils.h

20 lines
392 B
C
Raw Permalink Normal View History

2017-01-02 21:31:05 +00:00
#ifndef WS_UTILS_H
#define WS_UTILS_H
#include "ws_types.h"
2017-01-02 22:01:06 +00:00
#include <stdbool.h>
2017-01-02 21:36:40 +00:00
method_t ws_method(const char*);
const char* ws_method_string(method_t);
2017-01-02 21:31:05 +00:00
const char* ws_code_reason(int);
bool ws_host_match(const char*, const char*);
bool ws_path_match(const char*, const char*);
int ws_request_parse(char*, const char**, method_t*);
char* ws_host_find(const char**, headers_t);
#endif