Package io.muserver

Interface ResponseInfo

    • Method Detail

      • duration

        long duration()
        The duration in millis of a completed response, or the duration so far of an in-progress request.
        Returns:
        the number of milliseconds from the start of the request until the end of the response.
      • completedSuccessfully

        boolean completedSuccessfully()
        Indicates whether or not a response completed successfully. Non-successful completion may be due to events such as the client disconnecting early, or a response timing out.

        Note: even server errors such as a 500 are considered "successful" if the full response was sent to the client.

        Returns:
        Returns true if the request was fully read and the response was fully sent to the client.
      • request

        MuRequest request()
        Returns:
        The request
      • response

        MuResponse response()
        Returns:
        The response