 
     }
 
-    /// External message write for multiplex rejection
-    ///
-    /// - Parameter requestId: The id of the request to reject.
+    /**
+     External message write for multiplex rejection
+     
+     - Parameter requestId: The id of the request to reject.
+     
+     ### Usage Example: ###
+     ````swift
+     try response.rejectMultiplexConnecton(requestId: requestId)
+     ````
+     */
     public func rejectMultiplexConnecton(requestId: UInt16) throws {
         let message = try getNoMultiplexingMessage(requestId: requestId)
         try writeToSocket(message, wrapAsMessage: false)
     }
 
-    /// External message write for role rejection
+    /**
+     External message write for role rejection
+     
+     ### Usage Example: ###
+     ````swift
+     try response.rejectUnsupportedRole()
+     ````
+     */
     public func rejectUnsupportedRole() throws {
         guard let message = try getUnsupportedRoleMessage() else {
             return

        try writeToSocket(message, wrapAsMessage: false)
    }

    /// Reset the request for reuse in Keep alive
    public func reset() {
        /*****  TBD *******/
    }

        self.headers["Date"] = [SPIUtils.httpDate()]
    }

    /**
     Add a string to the body of the HTTP response and complete sending the HTTP response
     
     - Parameter text: The String to add to the body of the HTTP response.
     
     - Throws: Socket.error if an error occurred while writing to the socket
     
     ### Usage Example: ###
     ````swift
     try response.end(text: result)
     ````
     */
    public func end(text: String) throws {
        try write(from: text)
        try end()
    }
    
    /**
     Add a string to the body of the HTTP response.
     
     - Parameter string: The String data to be added.
     
     - Throws: Socket.error if an error occurred while writing to the socket
     
     ### Usage Example: ###
     ````swift
     try response.write(from: theBody)
     ````
     */
    public func write(from string: String) throws {
        try write(from: string.data(using: .utf8)!)
    }

    /**
     Add bytes to the body of the HTTP response.
     
     - Parameter data: The Data struct that contains the bytes to be added.
     
     - Throws: Socket.error if an error occurred while writing to the socket
     
     ### Usage Example: ###
     ````swift
     try response.write(from: theData)
     ````
     */
    public func write(from data: Data) throws {

        try startResponse()
