package com.ian;

public class DisembodiedSousChef {
    public static byte[] craftResponseHead(String directory, String request, byte[] body) {
        byte[] startLine = craftStartLine(directory, request);
        byte[] headers = HeadersCook.craftStandardHeaders(directory, request, body);
        byte[] crlf = "\r\n\r\n".getBytes();
        byte[][] responseHead = { startLine, headers, crlf };
        return ByteArrayCook.concatenateByteArrays(responseHead);
    }

    public static byte[] craftStartLine(String directory, String request) {
        if (RedirectLister.checkRedirect(request)) {
            return RedirectCook.craft302Response(request);
        } else if (HTCPCPLister.checkTea(request)) {
            return SuccessCook.craft2XXResponse();
        } else if (HTCPCPLister.checkCoffee(request)) {
            return ClientErrorCook.craft418Response();
        } else if (FileStocker.inStock(directory, request)) {
            return SuccessCook.craft2XXResponse();
        } else {
            return ClientErrorCook.craft404Response();
        }
    }
}

@@ -157,25 +157,29 @@
 e%5B%5D 
-start
+response
 Line
+s
  = craft
 Star
@@ -174,25 +174,29 @@
  = craft
-Start
+Response
 Line
+s
 (directo
@@ -224,17 +224,25 @@
  byte%5B%5D 
-h
+standardH
 eaders =
@@ -385,20 +385,32 @@
 = %7B 
-start
+response
 Line
+s
 , 
-h
+standardH
 eade
@@ -528,17 +528,21 @@
 raft
-Start
+Response
 Line
+s
 (Str

refactor names in DisembodiedSousChef to reflect reality