Hello.
To test ApiHeaderParameter, invoked HttpApi service method like this
curl ... -H "x-my-secret-key: somethingsecret" http://localhost:8099/api/test
and to read x-my-secret-key header value at server, I tried following code but I couldnt’
[ServiceMethod]
[ApiMethod(HttpApiPath = "test", HttpApiMethod = ApiRequestMethod.Get)]
public string MyTestApi ([ApiHeaderParameter]string mySecretKey)
and
public string MyTestApi ([ApiHeaderParameter]string xMySecretKey)
How can server read x-my-secret-key header value?