[ 
https://issues.apache.org/jira/browse/TS-4703?focusedWorklogId=26132&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-26132
 ]

ASF GitHub Bot logged work on TS-4703:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Aug/16 21:12
            Start Date: 01/Aug/16 21:12
    Worklog Time Spent: 10m 
      Work Description: Github user petarpenkov commented on a diff in the pull 
request:

    https://github.com/apache/trafficserver/pull/829#discussion_r73053878
  
    --- Diff: 
doc/developer-guide/api/functions/TSHttpTxnClientProtocolGet.en.rst ---
    @@ -0,0 +1,34 @@
    +.. Licensed to the Apache Software Foundation (ASF) under one or more
    +   contributor license agreements.  See the NOTICE file distributed
    +   with this work for additional information regarding copyright
    +   ownership.  The ASF licenses this file to you under the Apache
    +   License, Version 2.0 (the "License"); you may not use this file
    +   except in compliance with the License.  You may obtain a copy of
    +   the License at
    +
    +   http://www.apache.org/licenses/LICENSE-2.0
    +
    +   Unless required by applicable law or agreed to in writing, software
    +   distributed under the License is distributed on an "AS IS" BASIS,
    +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    +   implied.  See the License for the specific language governing
    +   permissions and limitations under the License.
    +
    +.. include:: ../../../common.defs
    +
    +.. default-domain:: c
    +
    +TSHttpTxnClientProtocolGet
    +*********************
    +
    +Gets the protocol string (http, http/2) of a specified transaction. 
    +
    +Synopsis
    +========
    +
    +`#include <ts/ts.h>`
    +
    +.. function:: const char * TSHttpTxnClientProtocolGet(TSHttpTxn txnp)
    +
    +Description
    +===========
    --- End diff --
    
    I am not sure if I am the right person to mess with docs because I am 
relatively new to the ATS practices. However I feel like TSHttpTxn* functions 
can be mashed together, same with TSHttpSsn*, same with TSMimeHdr*, TSHttpHdr* 
and so on. I am basing this off the history of my needs and my intuition that a 
user of the interface would want to see in one place ALL they can do with a 
Transaction, Session, etc... This will reduce the number of files in this 
folder significantly.


Issue Time Tracking
-------------------

    Worklog Id:     (was: 26132)
    Time Spent: 1h 50m  (was: 1h 40m)

> Adds an API call to retrieve transaction protocol
> -------------------------------------------------
>
>                 Key: TS-4703
>                 URL: https://issues.apache.org/jira/browse/TS-4703
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: TS API
>            Reporter: Petar Penkov
>             Fix For: 7.0.0
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> It would be useful if there was a way to retrieve the underlying protocol for 
> a given transaction through the tsapi at the very least for plugin logging 
> purposes. This can be achieved with a very simple method since this 
> information is already available internally. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to