public String[] getHeaderNames() {
        Set<String> headers = this.headers.keySet();

        return headers.toArray(new String[headers.size()]);
    }
public String [ ] getHeaderNames ( ) { Set < String > headers = this . headers . keySet ( ) ; return headers . toArray ( new String [ headers . size ( ) ] ) ; }
Gets the header names of all headers set in this response.

@return an array of {@code String}s