Interface NHttpConnection

    • Method Detail

      • getStatus

        int getStatus()
        Returns status of the connection:

        ACTIVE: connection is active.

        CLOSING: connection is being closed.

        CLOSED: connection has been closed.

        Returns:
        connection status.
      • getHttpRequest

        HttpRequest getHttpRequest()
        Returns the current HTTP request if one is being received / transmitted. Otherwise returns null.
        Returns:
        HTTP request, if available, null otherwise.
      • getHttpResponse

        HttpResponse getHttpResponse()
        Returns the current HTTP response if one is being received / transmitted. Otherwise returns null.
        Returns:
        HTTP response, if available, null otherwise.
      • getContext

        HttpContext getContext()
        Returns an HTTP execution context associated with this connection.
        Returns:
        HTTP context