public HttpRequest form(String name, Resource resource) {
		if (null != resource) {
			if (false == isKeepAlive()) {
				keepAlive(true);
			}

			if (null == this.fileForm) {
				fileForm = new HashMap<>();
			}
			// 文件对象
			this.fileForm.put(name, resource);
		}
		return this;
	}
public HttpRequest form ( String name , Resource resource ) { if ( null != resource ) { if ( false == isKeepAlive ( ) ) { keepAlive ( true ) ; } if ( null == this . fileForm ) { fileForm = new HashMap < > ( ) ; } this . fileForm . put ( name , resource ) ; } return this ; }
文件表单项<br>
一旦有文件加入，表单变为multipart/form-data

@param name 名
@param resource 数据源，文件可以使用{@link FileResource}包装使用
@return this
@since 4.0.9