public static RequestLine parseRequest(byte[] requestData) throws IllegalArgumentException, FileNotFoundException {
		if (requestData.length == 0) {
			throw new IllegalArgumentException("Empty request-line.");
		}
		String request;
		try {
			request = new String(requestData, "US-ASCII");
		} catch (UnsupportedEncodingException e) {
			throw new AssertionError("US-ASCII was not recognized as a character encoding.");
		}
		String[] tokens = request.trim().split(" ");
		if (tokens.length != 3) {
			throw new IllegalArgumentException("Unable to recognize tokens on request-line.");
		}
		METHOD method;
		try {
			method = METHOD.valueOf(tokens[0]);
		} catch (Exception e) {
			throw new IllegalArgumentException("Unrecognized method");
		}
		File file = new File("site"+tokens[1]);
		String version = tokens[2];
		return new RequestLine(method, file, version);
	}