Skip to content

Instantly share code, notes, and snippets.

View jakeswenson's full-sized avatar
🏠
Working from home

Jake Swenson jakeswenson

🏠
Working from home
View GitHub Profile
@jakeswenson
jakeswenson / ReusedWebClientResponseBufferOn204Test.java
Created March 14, 2018 22:50
Buffer reuse with 204 No Content responses with a body
import io.vertx.core.Future;
import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.json.Json;
import io.vertx.ext.web.client.HttpResponse;
import io.vertx.ext.web.client.WebClient;
import io.vertx.ext.web.client.WebClientOptions;
import org.junit.Test;
import java.util.Arrays;