mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-30 11:44:29 +03:00
First release of open-appsec source code
This commit is contained in:
37
components/include/http_transaction_common.h
Normal file
37
components/include/http_transaction_common.h
Normal file
@@ -0,0 +1,37 @@
|
||||
// Copyright (C) 2022 Check Point Software Technologies Ltd. All rights reserved.
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef __HTTP_TRANSACTION_ENUM_H__
|
||||
#define __HTTP_TRANSACTION_ENUM_H__
|
||||
|
||||
namespace HttpTransaction {
|
||||
|
||||
enum class Method { GET, HEAD, POST, DELETE, CONNECT, OPTIONS, TRACE, PATCH, PUT };
|
||||
enum class Dir { REQUEST, RESPONSE };
|
||||
enum class Verdict { ACCEPT, DROP, INJECT, REDIRECT, NONE, DEFAULT };
|
||||
|
||||
enum class StatusCode {
|
||||
OK = 200,
|
||||
CREATED = 201,
|
||||
NO_CONTENT = 204,
|
||||
NOT_MODIFIED = 304,
|
||||
BAD_REQUEST = 400,
|
||||
UNAUTHORIZED = 401,
|
||||
FORBIDDEN = 403,
|
||||
NOT_FOUND = 404,
|
||||
CONFLICT = 409,
|
||||
INTERNAL_SERVER_ERROR = 500
|
||||
};
|
||||
|
||||
}
|
||||
#endif // __HTTP_TRANSACTION_ENUM_H__
|
Reference in New Issue
Block a user