- Documentation
TrafficRoute DNS Suite
VolcanoEngine HTTPDNS
User Guide
Software-defined parsing: AnyMatch
Add custom identifier on the client
Software-defined parsing: AnyMatch
Add custom identifier on the client
Add custom identifier on the client
This document describes how to add custom identifiers on the client side. You can add custom identifiers through the client SDK or HTTP API.
Add custom identifiers via the client SDK
Using the Android SDK as an example, the following request header parameter represents the string identifier shanghai.
public Map<String, List<String>> getExtraHeaders() {
Map<String, List<String>> headers = new HashMap<>();
headers.put("Am-Tag", Arrays.asList("shanghai"));
The following request header parameter represents the string identifier telecom/hebei/shijiazhuang.
public Map<String, List<String>> getExtraHeaders() {
Map<String, List<String>> headers = new HashMap<>();
headers.put("Am-Tag", Arrays.asList("telecom","hebei","shijiazhuang"));
The following request header parameter represents the numeric identifier 123456.
public Map<String, List<String>> getExtraHeaders() {
Map<String, List<String>> headers = new HashMap<>();
headers.put("Am-Id", Arrays.asList("123456"));
Add custom identifiers via HTTP API
For example, the following request header parameter represents the string identifier shanghai.
The following request header parameter represents the string identifier telecom/hebei/shijiazhuang.
Am-Tag: telecom/hebei/shijiazhuang
The following request header parameter indicates a numeric identifier 123456.
Last updated: 2025.11.10 22:43:32