@Test public void allowHeader() { Headers headers = new Headers().add(HeaderConstants.ALLOW, "GET, POST, OPTIONS"); HTTPResponse response = new HTTPResponse(Status.OK, headers); assertEquals(3, response.getHeaders().getAllow().size()); }
public Headers getHeaders() { return headers; }
HTTPResponse { public Headers getHeaders() { return headers; } }
HTTPResponse { public Headers getHeaders() { return headers; } HTTPResponse(Status status, Headers headers);  HTTPResponse(Optional<Payload> payload, Status status, Headers headers);  HTTPResponse(Optional<Payload> payload, StatusLine statusLine, Headers headers); }
HTTPResponse { public Headers getHeaders() { return headers; } HTTPResponse(Status status, Headers headers);  HTTPResponse(Optional<Payload> payload, Status status, Headers headers);  HTTPResponse(Optional<Payload> payload, StatusLine statusLine, Headers headers); @Internal HTTPResponse withHeaders(Headers headers); @Internal HTTPResponse withPayload(Payload payload); boolean hasPayload(); Status getStatus(); StatusLine getStatusLine(); Optional<Payload> getPayload(); Headers getHeaders(); boolean isCached(); Optional<A> transform(final ThrowableFunction<Payload, A, IOException> f); void consume(); @Override boolean equals(Object o); @Override int hashCode(); }
HTTPResponse { public Headers getHeaders() { return headers; } HTTPResponse(Status status, Headers headers);  HTTPResponse(Optional<Payload> payload, Status status, Headers headers);  HTTPResponse(Optional<Payload> payload, StatusLine statusLine, Headers headers); @Internal HTTPResponse withHeaders(Headers headers); @Internal HTTPResponse withPayload(Payload payload); boolean hasPayload(); Status getStatus(); StatusLine getStatusLine(); Optional<Payload> getPayload(); Headers getHeaders(); boolean isCached(); Optional<A> transform(final ThrowableFunction<Payload, A, IOException> f); void consume(); @Override boolean equals(Object o); @Override int hashCode();  }