You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Divij Vaidya (JIRA)" <ji...@apache.org> on 2019/06/18 04:05:00 UTC

[jira] [Commented] (TINKERPOP-2243) Add user-agent to RequestOptions

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

Divij Vaidya commented on TINKERPOP-2243:
-----------------------------------------

I would take it a step further and say that driver should have an option where the provider can add specific custom fields to the request header. It might be a user-agent or an auth token or encoding of the request data. It could be done by allowing the providers to provide a JAR which would contain a netty handler adhering to a specific interface and would be auto-magically picked up by the client on startup.

> Add user-agent to RequestOptions
> --------------------------------
>
>                 Key: TINKERPOP-2243
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2243
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: driver, server
>    Affects Versions: 3.4.2
>            Reporter: Bryn Cooke
>            Priority: Major
>
> It would beĀ useful to know the 'user-agent' that is sending a request so that the server can react in different ways. For instance:
>  * To log differently.
>  * To give different error messages.
> For instance, if the user is connecting via gremlin console then error messages can include gremlin console specific help.



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