code: void removeComponent(int index) {
          Component component = components.get(index);
          components.remove(index);
          updateComponentOffsets(index);
          position.getAndUpdate((offset) -> offset - component.length);
      }
docs: Removes a section from the http data and updates the
  indices of the remaining components.
  
  @param index The index of the component to remove.