ParentT
- the stage of the parent definition to return to after attaching this definitionpublic static interface Webhook.DefinitionStages.WithCustomHeaders<ParentT>
Modifier and Type | Method and Description |
---|---|
Webhook.DefinitionStages.WithAttach<ParentT> |
withCustomHeader(String name,
String value)
Specifies a custom header that will be added to notifications.
|
Webhook.DefinitionStages.WithAttach<ParentT> |
withCustomHeaders(Map<String,String> customHeaders)
Specifies the custom headers that will be added to the notifications.
|
Webhook.DefinitionStages.WithAttach<ParentT> withCustomHeader(String name, String value)
Consecutive calls to this method will add additional headers.
name
- of the optional headervalue
- of the optional headerWebhook.DefinitionStages.WithAttach<ParentT> withCustomHeaders(Map<String,String> customHeaders)
customHeaders
- the "Name=Value" custom headers.Copyright © 2019. All rights reserved.