[ 
https://issues.apache.org/jira/browse/ATLAS-3106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16812697#comment-16812697
 ] 

Madhan Neethiraj commented on ATLAS-3106:
-----------------------------------------

In addition to addCustomHeader() method, I would suggest to add the following 
as well:
{code}
void   addCustomHeader(String name, String value) { customHeader.put(name, 
value); }
void   removeCustomHeader(String name) { customHeader.remove(name); }
String getCustomHeader(String name) { return customHeader.get(name); }

Collection<String> getCustomHeaderNames() { return 
Collections.unmodifiableSet(customHeader.keySet()); }
{code}


> Atlas client request custom header
> ----------------------------------
>
>                 Key: ATLAS-3106
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3106
>             Project: Atlas
>          Issue Type: Improvement
>            Reporter: Vasanth kumar RJ
>            Priority: Minor
>         Attachments: ATLAS-3106.patch
>
>
> Add custom header in Atlas client rest calls.
> Our use cases:
> - Request tracking: Add unique logging id in header for every rest api 
> request which will be set into Atlas server Logger MDC (working on this).
> - Our custom authentication and authorization requires more details from user 
> that can be passed through request header.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to