Code example for Charset

Methods: name

0
        this.body = body;
    } 
 
    @Override 
    public void handleHttpRequest(HttpRequest request, HttpResponse response, HttpControl control) {
        response.charset(charset)
                .header("Content-Type", contentType + "; charset=" + charset.name())
                .header("Content-Length", body.length())
                .content(body)
                .end(); 
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java