Package de.linusdev.lutils.http_WIP
Class HTTPRequestBuilder
java.lang.Object
de.linusdev.lutils.http_WIP.HTTPRequestBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild(@NotNull OutputStream stream, int maxBufferSize) voidvoidPOST(@Nullable String path, @NotNull BodySupplier supplier) voidsetBodySupplier(@Nullable BodySupplier supplier) voidvoidsetHeaders(@NotNull Map<@NotNull String, @NotNull Header> headers) voidsetMethod(@NotNull RequestMethod method) voidvoidsetVersion(@NotNull HTTPVersion version)
-
Field Details
-
CHARSET
-
LINE_SEPARATOR
public static final byte[] LINE_SEPARATOR -
SPACE
public static final byte SPACE- See Also:
-
-
Constructor Details
-
HTTPRequestBuilder
public HTTPRequestBuilder()
-
-
Method Details
-
setMethod
-
setPath
-
setVersion
-
setBodySupplier
-
setHeader
-
setHeaders
-
GET
-
POST
-
build
- Throws:
IOException
-