Record Class HttpRequest
java.lang.Object
java.lang.Record
ch.nolix.base.net.http.HttpRequest
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpRequest(String content) Creates an instance of aHttpRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanBe(StoringRequestable<String> lines) content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()
-
Field Details
-
ACCEPT_HEADER
- See Also:
-
CONTENT_TYPE_HEADER
- See Also:
-
HOST_HEADER
- See Also:
-
HTTP_HEADER
- See Also:
-
-
Constructor Details
-
HttpRequest
Creates an instance of aHttpRequestrecord class.- Parameters:
content- the value for thecontentrecord component
-
-
Method Details
-
canBe
-
getContent
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-