add support for OPTIONS http method

This commit is contained in:
tomasz.sowa committed 2022-08-11 08:04:40 +02:00
1 parent f651df6e1f
commit ceb5336ca1
7 files changed
+41 -10

No files matched your search

+2 -2
View File
@@ -160,7 +160,7 @@ public:
the HTTP method
!! IMPROVE ME add the rest methods here
*/
enum Method { get, post, head, delete_, unknown_method } method;
enum Method { get, post, head, delete_, options, unknown_method } method;
/*
@@ -549,7 +549,7 @@ private:
void http_status_error_title(EzcEnv & env);
void http_status_error_description(EzcEnv & env);
void SendAnswer();
void PrepareAndSendAnswer();
void PrepareRawAnswer();
void PrepareJsonAnswer();
void PrepareXmlAnswer();