Module methanol

Class ForwardingEncoder

    • Method Detail

      • toBody

        public java.net.http.HttpRequest.BodyPublisher toBody​(java.lang.Object value,
                                                              @Nullable MediaType mediaType)
        Description copied from interface: BodyAdapter.Encoder
        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