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