add support for OPTIONS http method
This commit is contained in:
@@ -160,6 +160,13 @@ void FunctionBase::MakeDelete()
|
||||
}
|
||||
|
||||
|
||||
void FunctionBase::MakeOptions()
|
||||
{
|
||||
cur->request->http_status = Header::status_204_no_content;
|
||||
cur->request->out_headers.add(Header::allow, L"OPTIONS, GET, HEAD, POST, DELETE");
|
||||
}
|
||||
|
||||
|
||||
void FunctionBase::Clear()
|
||||
{
|
||||
// do nothing by default
|
||||
@@ -183,6 +190,10 @@ void FunctionBase::ContinueMakeDelete()
|
||||
// do nothing by default
|
||||
}
|
||||
|
||||
void FunctionBase::ContinueMakeOptions()
|
||||
{
|
||||
// do nothing by default
|
||||
}
|
||||
|
||||
|
||||
} // namespace Winix
|
||||
|
Reference in New Issue
Block a user