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

Frank Greguska commented on SDAP-169:
-------------------------------------

Note from 
[https://www.tornadoweb.org/en/stable/httpclient.html#tornado.httpclient.AsyncHTTPClient]

 

All 
[{{AsyncHTTPClient}}|https://www.tornadoweb.org/en/stable/httpclient.html#tornado.httpclient.AsyncHTTPClient]
 implementations support a {{defaults}} keyword argument, which can be used to 
set default values for 
[{{HTTPRequest}}|https://www.tornadoweb.org/en/stable/httpclient.html#tornado.httpclient.HTTPRequest]
 attributes. For example:
AsyncHTTPClient.configure( None, defaults=dict(user_agent="MyUserAgent")) # or 
with force_instance: client = AsyncHTTPClient(force_instance=True, 
defaults=dict(user_agent="MyUserAgent"))

> Update passthrough plugin to use defaults for some HTTP headers
> ---------------------------------------------------------------
>
>                 Key: SDAP-169
>                 URL: https://issues.apache.org/jira/browse/SDAP-169
>             Project: Apache Science Data Analytics Platform
>          Issue Type: Bug
>          Components: edge
>            Reporter: Frank Greguska
>            Assignee: Maya DeBellis
>            Priority: Minor
>
> The passthrough EDGE plugin should set a default for some HTTP headers:
> "User-Agent": "Tornado"
> "Accept": "*"
>  
> Changes should be implemented here: 
> [https://github.com/apache/incubator-sdap-edge/blob/master/src/main/python/libraries/edge/httputility.py]
>  



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

Reply via email to