public function handleFile(HTTPRequest $request)
    {
        $filename = $this->parseFilename($request);

        // Deny requests to private file
        if (!$this->isValidFilename($filename)) {
            return $this->httpError(400, "Invalid request");
        }

        // Pass through to backend
        return $this->getRouteHandler()->getResponseFor($filename);
    }
public function handleFile(HTTPRequest $request)
    {
        $filename = $this->parseFilename($request);

        // Deny requests to private file
        if (!$this->isValidFilename($filename)) {
            return $this->httpError(400, "Invalid request");
        }

        // Pass through to backend
        return $this->getRouteHandler()->getResponseFor($filename);
    }
public function handleFile ( HTTPRequest $ request ) { $ filename = $ this -> parseFilename ( $ request ) ; // Deny requests to private file if ( ! $ this -> isValidFilename ( $ filename ) ) { return $ this -> httpError ( 400 , "Invalid request" ) ; } // Pass through to backend return $ this -> getRouteHandler ( ) -> getResponseFor ( $ filename ) ; }
Provide a response for the given file request

@param HTTPRequest $request
@return HTTPResponse
Provide a response for the given file request