public class RequiresHeader extends java.lang.Object implements Take
Take that checks whether the provided header is passed to the request
or not. If it's not passed then bad request is returned as response otherwise request is passed to provided origin.
This class is use-full as validation clause to verify that certain header is passed.| Constructor and Description |
|---|
RequiresHeader(java.lang.String headerName,
Take origin) |
| Modifier and Type | Method and Description |
|---|---|
Response |
ack(Request request) |