HttpHeaderAction constructor

const HttpHeaderAction({
  1. Input<List<HttpHeaderOption>>? requestHeadersToAdd,
  2. Input<List<String>>? requestHeadersToRemove,
  3. Input<List<HttpHeaderOption>>? responseHeadersToAdd,
  4. Input<List<String>>? responseHeadersToRemove,
})

Creates a new HttpHeaderAction. requestHeadersToAdd Headers to add to a matching request before forwarding the request to the backendService. requestHeadersToRemove A list of header names for headers that need to be removed from the request before forwarding the request to the backendService. responseHeadersToAdd Headers to add the response before sending the response back to the client. responseHeadersToRemove A list of header names for headers that need to be removed from the response before sending the response back to the client.

Implementation

const HttpHeaderAction({
  this.requestHeadersToAdd,
  this.requestHeadersToRemove,
  this.responseHeadersToAdd,
  this.responseHeadersToRemove,
});