-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(command): Support inject request extension headers
- Rename CommandHeaders to CommandRequestHeaders to better reflect its usage - Update related imports and usages across multiple files - Add test case for injecting extension headers in CommandMessageParser
- Loading branch information
Showing
25 changed files
with
248 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
wow-openapi/src/main/kotlin/me/ahoo/wow/openapi/command/CommandHeaders.kt
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
wow-openapi/src/main/kotlin/me/ahoo/wow/openapi/command/CommandRequestHeaders.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright [2021-present] [ahoo wang <[email protected]> (https://github.com/Ahoo-Wang)]. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with 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. | ||
*/ | ||
|
||
package me.ahoo.wow.openapi.command | ||
|
||
object CommandRequestHeaders { | ||
|
||
const val COMMAND_HEADERS_PREFIX = "Command-" | ||
const val WAIT_CONTEXT = "${COMMAND_HEADERS_PREFIX}Wait-Context" | ||
const val TENANT_ID = "${COMMAND_HEADERS_PREFIX}Tenant-Id" | ||
const val AGGREGATE_ID = "${COMMAND_HEADERS_PREFIX}Aggregate-Id" | ||
const val AGGREGATE_VERSION = "${COMMAND_HEADERS_PREFIX}Aggregate-Version" | ||
const val WAIT_STAGE = "${COMMAND_HEADERS_PREFIX}Wait-Stage" | ||
const val WAIT_TIME_OUT = "${COMMAND_HEADERS_PREFIX}Wait-Timout" | ||
|
||
const val WAIT_PROCESSOR = "${COMMAND_HEADERS_PREFIX}Wait-Processor" | ||
const val REQUEST_ID = "${COMMAND_HEADERS_PREFIX}Request-Id" | ||
const val LOCAL_FIRST = "${COMMAND_HEADERS_PREFIX}Local-First" | ||
|
||
const val COMMAND_AGGREGATE_CONTEXT = "${COMMAND_HEADERS_PREFIX}Aggregate-Context" | ||
const val COMMAND_AGGREGATE_NAME = "${COMMAND_HEADERS_PREFIX}Aggregate-Name" | ||
const val COMMAND_TYPE = "${COMMAND_HEADERS_PREFIX}Type" | ||
|
||
const val COMMAND_HEADER_X_PREFIX = "${COMMAND_HEADERS_PREFIX}Header-" | ||
const val WOW_ERROR_CODE = "Wow-Error-Code" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.