Code example for BasicHeader

0
        return this;
    } 
 
    public Respond withHeader(String name, String value)
    { 
        headers.add(new BasicHeader(name, value));
        return this;
    } 
 
    public Respond withJSON(JSONObject json)
    { 
        this.json = json;
        return this;
    } 
 
    public void respond(HttpResponse response)
        throws IOException 
    { 
        respondWithStatusCode(response);
        respondWithHeaders(response);