mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
feat(agentcompat): add shared runtime contracts
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
This commit is contained in:
1 parent
a416e3bf29
commit
8b47ff141f
8 files changed
+836
-64
No files matched your search
@@ -0,0 +1,3 @@
|
||||
package agentcompatcontract
|
||||
|
||||
const IOStreamCapabilityHeader = "X-Nezha-AgentCompat-IOStream-Capability"
|
||||
@@ -0,0 +1,9 @@
|
||||
package agentcompatcontract
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestIOStreamCapabilityHeaderUsesFrozenName(t *testing.T) {
|
||||
if IOStreamCapabilityHeader != "X-Nezha-AgentCompat-IOStream-Capability" {
|
||||
t.Fatalf("unexpected capability header name")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user