Code example for BasicHeader

    private HttpParams params;
    private boolean contentConsumed = false;
     * Creates a new multipart entity containing the given parts. 
     * @param parts The parts to include. 
     * @param params The params of the HttpMethod using this entity. 
    public MultipartEntity(Part[] parts, HttpParams params) {      
      if (parts == null) {
          throw new IllegalArgumentException("parts cannot be null");
      if (params == null) {
          throw new IllegalArgumentException("params cannot be null");
      } = parts;
      this.params = params;
Experience pair programming with AI  Get Codota for Java