Record Class SecFetch
java.lang.Object
java.lang.Record
io.micronaut.http.SecFetch
- Record Components:
site- The relationship between the request initiator and requested resourcemode- The request modedest- The request destinationuser- Whether the request was initiated by user activation
The Fetch Metadata request headers.
- Since:
- 5.1.12
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSecFetch(Site site, Mode mode, Destination dest, boolean user) Creates an instance of aSecFetchrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondest()Returns the value of thedestrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.static @Nullable SecFetchof(HttpHeaders headers) Creates Fetch Metadata from the given headers.static @Nullable SecFetchof(HttpRequest<?> request) Creates Fetch Metadata from the request headers.site()Returns the value of thesiterecord component.final StringtoString()Returns a string representation of this record class.booleanuser()Returns the value of theuserrecord component.
-
Constructor Details
-
Method Details
-
of
Creates Fetch Metadata from the request headers.- Parameters:
request- The HTTP request- Returns:
- The Fetch Metadata, or
nullif the request does not contain all recognized Fetch Metadata headers - Since:
- 5.1.12
-
of
Creates Fetch Metadata from the given headers.- Parameters:
headers- The HTTP headers- Returns:
- The Fetch Metadata, or
nullif the headers do not contain all recognized Fetch Metadata headers - Since:
- 5.1.12
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
site
-
mode
-
dest
-
user
-