Registry / http-client / httpmime

httpmime

JSON →
library4.5.14javamavenunverified

Provides MIME entity encoding support for Apache HttpClient, enabling multipart file uploads.

<dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpmime</artifactId> <version>4.5.14</version> </dependency>
INSTALL
IMPORT
SIG · HTTPMIME
H
httpmime
http-clientjavav4.5.14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MultipartEntityBuilder
org.apache.http.entity.mime.MultipartEntityBuilder

Builds a multipart entity for file uploads using HttpClient.

import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.entity.mime.content.FileBody; import java.io.File; public class Example { public static void main(String[] args) { MultipartEntityBuilder builder = MultipartEntityBuilder.create(); builder.addPart("file", new FileBody(new File("example.txt"))); // Use builder.build() to create HttpEntity } }
Debug
Known issues
breakinghttpmime 4.5.x is the last release for HttpClient 4.x; consider migrating to HttpClient 5.x.
fix
Use org.apache.httpcomponents.client5:httpclient5 and its MIME support for new projects.
affects: >=4.5.0
Upgrade
Version history
4.5.14latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
Amazon
1
Resources
httpmime — mvn dependency:get httpmime · libregistry