setResponseString (method)
Sets a string to be served as a response.
Syntax
- (void)setResponseString:(long long)connectionId :(NSString*)dataStr :(NSString*)contentType;
public func setResponseString(_ connectionId: Int64, _ dataStr: String, _ contentType: String) throws -> Void
Remarks
Use this property to provide the response content in a string.