Skip to content

Force request header depending on request type #1878

Closed Answered by dariuszkuc
rb090 asked this question in Q&A
Discussion options

You must be logged in to vote

You are on the "right" path -> you already configured your context factory through

server {
  contextFactory = HeaderContextFactory()
}

So you just need to access the value from the context in your directive wiring and then decide whether to proceed with the call or return failure.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@rb090
Comment options

@dariuszkuc
Comment options

@rb090
Comment options

@dariuszkuc
Comment options

Answer selected by rb090
@rb090
Comment options

@rb090
Comment options

@dariuszkuc
Comment options

@rb090
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants