Package org.omegazero.http.gen
Interface HTTPResponseSupplier<T extends HTTPResponse>
- Type Parameters:
T- A specificHTTPResponsetype
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface for creating
HTTPResponses.
This may be useful to an application using parsers of this library for creating special subtypes of HTTPResponses, since the parsers would otherwise only create
instances of regular HTTPResponses, possibly limiting the application.
- Since:
- 1.2.1
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionget(int status, String version, HTTPHeaderContainer headers) Creates a newHTTPResponse.
-
Field Details
-
DEFAULT
-
-
Method Details
-
get
Creates a newHTTPResponse.- Parameters:
status- The HTTP response status codeversion- The HTTP versionheaders- The HTTP headers- Returns:
- The new
HTTPResponse - See Also:
-