public Response<T> executeAsGet() {
    HttpURLConnection connection = null;

    try {
      connection = openConnection(endpoint + "?" + parameters.toUrlFormat());
      final String response = buildResponse(connection.getInputStream());
      return handleResponse(response);
    } catch (final IOException e) {
      return Responses.failed("Unable to connect to Pastebin endpoint!");
    } finally {
      if (connection != null) {
        connection.disconnect();
      }
    }
  }
  private void sendParameters(
      final OutputStream destination, final HttpParametersUtils parametersUtils)
      throws IOException {
    final byte[] parameters = parametersUtils.toUrlFormat().getBytes(StandardCharsets.UTF_8);
    DataOutputStream dataOutputStream = null;

    try {
      dataOutputStream = new DataOutputStream(destination);
      dataOutputStream.write(parameters);
    } finally {
      if (dataOutputStream != null) {
        dataOutputStream.close();
      }
    }
  }
 public HttpEndpointConnection<T> removeParameter(@NotNull final String key) {
   parameters.remove(key);
   return this;
 }
 public HttpEndpointConnection<T> addParameter(
     @NotNull final String key, @NotNull final String value) {
   parameters.put(key, value);
   return this;
 }