rest - Apache CXF RS request and response sizes -


How can I get request and response size in bytes in Apache CXF Rest Service to log into Matrix DB? "Content-Length" is not an option, such a title can not be found on my messages. I need raw size, which can be obtained by wireshark from the nearest, for example, when I dump the TCP of my http session.

The length of the message message in the link is 4.4:

Content-Length VS Transfer- Encoding and HTTP / 1.0 VS HTTP / 1.1

To understand HTTP headers & amp; transportation.

  1. The w.r.t request message is set by content-length client side transport, therefore, whether or not the requestor decides to determine the content-length.

  2. The w.r.t response message is normally based on the server on which the cxf-rs endpoint is deployed. Tommak sends content-length by default, even if you manually set content-length manually for the retention header:

    Public response getData () {

    Address Data = New Address ("London", "UK"); // Domain Model / // Address Two Properties are City and Country's String Return Response.ok (). Unit (data). Type ("App / Jason"). Header (HttpHeaders.CONTENT_LENGTH, data.toString ()). Build ();

    }


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -