Module methanol

Interface AbstractBodyAdapter.BaseEncoder

    • Method Detail

      • toBody

        default java.net.http.HttpRequest.BodyPublisher toBody​(java.lang.Object value,
                                                               @Nullable MediaType mediaType)
        Returns a HttpRequest.BodyPublisher that encodes the given object into a request body using the format specified by the given media type. If the given media type is null, the encoder uses its default format parameters (e.g., charset).
        Specified by:
        toBody in interface BodyAdapter.Encoder