core/src/main/java/net/typedrest/AbstractEndpoint.java
protected HttpResponse execute(Request request)
            throws IOException {
        defaultHeaders.forEach(request::addHeader);
        return executor.execute(request).returnResponse();
    }
protected HttpResponse execute(Request request)
            throws IOException {
        defaultHeaders.forEach(request::addHeader);
        return executor.execute(request).returnResponse();
    }
protected HttpResponse execute ( Request request ) throws IOException { defaultHeaders . forEach ( request :: addHeader ) ; return executor . execute ( request ) . returnResponse ( ) ; }
Executes a REST request adding any configured {@link #defaultHeaders}.

@param request The request to execute.
@return The HTTP response to the request.

@throws IOException Network communication failed.
@throws RuntimeException Other non-success status code.
Executes a REST request adding any configured { @link #defaultHeaders } .