responseWithHeaders() — spring-boot Function Reference
Architecture documentation for the responseWithHeaders() function in DockerApiTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD afedcd71_18d9_5bb8_19a9_5cfd4e33275b["responseWithHeaders()"] c8868b7f_8c53_fa0f_029b_adb439a84967["setVersion()"] c8868b7f_8c53_fa0f_029b_adb439a84967 -->|calls| afedcd71_18d9_5bb8_19a9_5cfd4e33275b 667a34d9_4aef_b63a_504c_525a6d2ebd71["getApiVersionWithVersionHeaderReturnsVersion()"] 667a34d9_4aef_b63a_504c_525a6d2ebd71 -->|calls| afedcd71_18d9_5bb8_19a9_5cfd4e33275b 173f834c_ebca_6d8b_4321_ff7739aa96dc["getApiVersionWithEmptyVersionHeaderReturnsUnknownVersion()"] 173f834c_ebca_6d8b_4321_ff7739aa96dc -->|calls| afedcd71_18d9_5bb8_19a9_5cfd4e33275b b3171812_ab1f_87c4_a83a_2a91e929e461["getName()"] afedcd71_18d9_5bb8_19a9_5cfd4e33275b -->|calls| b3171812_ab1f_87c4_a83a_2a91e929e461 6473ce41_7b2a_91a9_5bcc_8e657adec4e0["equals()"] afedcd71_18d9_5bb8_19a9_5cfd4e33275b -->|calls| 6473ce41_7b2a_91a9_5bcc_8e657adec4e0 style afedcd71_18d9_5bb8_19a9_5cfd4e33275b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/DockerApiTests.java lines 144–165
private Response responseWithHeaders(Header... headers) {
return new Response() {
@Override
public InputStream getContent() {
return new ByteArrayInputStream(new byte[0]);
}
@Override
public @Nullable Header getHeader(String name) {
return Arrays.stream(headers)
.filter((header) -> header.getName().equals(name))
.findFirst()
.orElse(null);
}
@Override
public void close() {
}
};
}
Domain
Subdomains
Calls
- equals()
- getName()
Called By
Source
Frequently Asked Questions
What does responseWithHeaders() do?
responseWithHeaders() is a function in the spring-boot codebase.
What does responseWithHeaders() call?
responseWithHeaders() calls 2 function(s): equals, getName.
What calls responseWithHeaders()?
responseWithHeaders() is called by 3 function(s): getApiVersionWithEmptyVersionHeaderReturnsUnknownVersion, getApiVersionWithVersionHeaderReturnsVersion, setVersion.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free