Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ typealias AppId = String

interface AppIdCapable {
companion object {
const val APP_ID_KEY = "CoSec-App-Id"
const val APP_ID_KEY = "${COSEC_EXTEND_KEY_PREFIX}App-Id"
}

val appId: AppId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ typealias DeviceId = String

interface DeviceIdCapable {
companion object {
const val DEVICE_ID_KEY = "CoSec-Device-Id"
const val DEVICE_ID_KEY = "${COSEC_EXTEND_KEY_PREFIX}Device-Id"
}
val deviceId: DeviceId
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (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.cosec.api.context.request

const val COSEC_EXTEND_KEY_PREFIX = "CoSec-"
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ typealias RequestId = String

interface RequestIdCapable {
companion object {
const val REQUEST_ID_KEY = "CoSec-Request-Id"
const val REQUEST_ID_KEY = "${COSEC_EXTEND_KEY_PREFIX}Request-Id"
}

val requestId: RequestId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ typealias SpaceId = String

interface SpaceIdCapable {
companion object {
const val SPACE_ID_KEY = "CoSec-Space-Id"
const val SPACE_ID_KEY = "${COSEC_EXTEND_KEY_PREFIX}Space-Id"
const val DEFAULT = ""
}

Expand Down
Loading