EndRequest() публичный Метод

public EndRequest ( ushort requestID, int appStatus, ProtocolStatus protocolStatus ) : void
requestID ushort
appStatus int
protocolStatus ProtocolStatus
Результат void
Пример #1
0
        // When a request is completed, the output and error streams
        // must be completed and the final farewell must be send so
        // the HTTP server can finish its response.

        public void CompleteRequest(int appStatus,
                                    ProtocolStatus protocolStatus)
        {
            // Data is no longer needed.
            DataNeeded = false;

            // Close the standard output if it was opened.
            if (stdout_sent)
            {
                SendStreamData(RecordType.StandardOutput,
                               new byte [0], 0);
            }

            // Close the standard error if it was opened.
            if (stderr_sent)
            {
                SendStreamData(RecordType.StandardError,
                               new byte [0], 0);
            }

            connection.EndRequest(RequestID, appStatus,
                                  protocolStatus);
        }