Package org.omegazero.http.gen
Interface HTTPRequestSupplier<T extends HTTPRequest>
- Type Parameters:
T
- A specificHTTPRequest
type
- 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
HTTPRequest
s.
This may be useful to an application using parsers of this library for creating special subtypes of HTTPRequest
s, since the parsers would otherwise only create
instances of regular HTTPRequest
s, possibly limiting the application.
- Since:
- 1.2.1
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionget
(String method, String scheme, String authority, String path, String version, HTTPHeaderContainer headers) Creates a newHTTPRequest
.
-
Field Details
-
DEFAULT
-
-
Method Details
-
get
T get(String method, String scheme, String authority, String path, String version, HTTPHeaderContainer headers) Creates a newHTTPRequest
.- Parameters:
method
- The request methodscheme
- The request URL schemeauthority
- The request URL authoritypath
- The request URL path componentversion
- The HTTP versionheaders
- The HTTP headers- Returns:
- The new
HTTPRequest
- See Also:
-