com.marklogic.http

## Class HttpChannel.MultipartFormBody

- java.lang.Object
- - com.marklogic.http.HttpChannel.MultipartFormBody

- Enclosing class:
    HttpChannel

      public static class HttpChannel.MultipartFormBody
      extends java.lang.Object

  Utilities for generating POST request body for multipart/form-data Example boundary: ------------------------933ed83bed2bbd3c Example form body: --------------------------933ed83bed2bbd3c Content-Disposition: form-data; name="key" -Z30HIE1I9xvUfwcXyLlHA== --------------------------933ed83bed2bbd3c Content-Disposition: form-data; name="grant_type" apikey --------------------------933ed83bed2bbd3c--

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MultipartFormBody()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addTextBody(java.lang.String name, java.lang.String value)`
    `java.lang.String` | `buildFormBody()`
    `java.lang.String` | `getBoundary()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MultipartFormBody

          public MultipartFormBody()

  - ### Method Detail

    - #### addTextBody

          public void addTextBody(java.lang.String name,
                                  java.lang.String value)

    - #### buildFormBody

          public java.lang.String buildFormBody()

    - #### getBoundary

          public java.lang.String getBoundary()

Copyright © 2025 MarkLogic Corporation. All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com