examples/lambda-example/src/main/java/org/platformlambda/services/FileDownload.java
Method handleEvent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public Object handleEvent(Map<String, String> headers, Object body, int instance) throws Exception {
AsyncHttpRequest request = new AsyncHttpRequest(body);
if (request.getUrl() == null) {
throw new IllegalArgumentException("The input does not appear to be a HTTP request. " +