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