All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.up.uca.rs.hunt.adaptor.BufferWings Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package io.vertx.up.uca.rs.hunt.adaptor;

import io.vertx.core.http.HttpServerResponse;
import io.vertx.up.commune.Envelop;

/**
 * @author Lang
 */
public class BufferWings extends AbstractWings {
    @Override
    public void output(final HttpServerResponse response, final Envelop envelop) {
        /*
         * No freedom support
         *
         * Buffer only ( Buffer output )
         * 1. Content-Type is `application/octet-stream`
         * 2. Replied in Buffer mode
         * byte[] data body instead of String.
         *
         * Situation 1:
         * Download stream here for file download here
         */
        response.end(envelop.outBuffer());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy