Modifier and Type | Field and Description |
---|---|
static Pattern |
pattern
The pattern (Content-Type | Content-Length | User-Agent | Trailer).
|
Constructor and Description |
---|
Header(String contentType,
Integer contentLength,
String userAgent,
String trailer) |
Modifier and Type | Method and Description |
---|---|
Integer |
contentLength()
Returns the length of the packet body in octets (8-bit bytes).
|
String |
contentType()
Returns the type of the body of the packet.
|
static Packet.Header |
fromString(String header) |
String |
toString() |
String |
trailer()
Returns the trailer of this header, if any.
|
String |
userAgent()
The user agent string of the user agent.
|
String |
view() |
public static final Pattern pattern
public String contentType()
public Integer contentLength()
public String userAgent()
public String trailer()
public String view()
public static Packet.Header fromString(String header)
Copyright © 2018–2020 InAccel. All rights reserved.