Header
HTTP header management feature.
With the Header feature, you can obtain any parameter coming in the header of the browser request, that is, obtain any information that comes in the HTTP header. But you can also define response parameters in the Header, for example define the response of the HTTP status code or the Content-Type, among others. Main functions:
- response
- status
- baseURL
- uri
- url
- rawHost
- host
- port
- scheme
- clientIP
- contentType
- contentTypePDF
- contentTypeJSON
- contentTypeHTML
- contentTypePlain
- contentTypePNG
- contentTypeJPG
- contentTypeCSS
- contentTypeOctetStream
- acceptJSON
- isAcceptJSON
- cache
- noCache
- downloadFile
- isDelete
- isGet
- isHead
- isOptions
- isPost
- isPut
- isTrace
- isCopy
- isLink
- isUnlink
- isPatch
- isPurge
- isLock
- isUnlock
- isPropFind
- isView
acceptJSON
_header.acceptJSON() : boolean
Return
( boolean )
add
_header.add(index: int, element: java.lang.Object) : Values
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int | |
element | java.lang.Object |
Return
( Values )
_header.add(o: java.lang.Object) : Values
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
o | java.lang.Object |
Return
( Values )
addAll
_header.addAll(index: int, c: java.util.Collection) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int | |
c | java.util.Collection |
Return
( boolean )
_header.addAll(c: java.util.Collection) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
c | java.util.Collection |
Return
( boolean )
as
_header.as(o: java.lang.Object) : Values
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
o | java.lang.Object |
Return
( Values )
_header.as(o: java.lang.Object, oDefault: java.lang.Object) : Values
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
o | java.lang.Object | |
oDefault | java.lang.Object |
Return
( Values )
asBoolean
_header.asBoolean(index: int) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int |
Return
( boolean )
_header.asBoolean(index: int, defaultValue: boolean) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int | |
defaultValue | boolean |
Return
( boolean )
_header.asBoolean(key: string) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
key | string |
Return
( boolean )
_header.asBoolean(key: string, defaultValue: boolean) : boolean
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
key | string | |
defaultValue | boolean |
Return
( boolean )
asByte
_header.asByte(index: int) : byte
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int |
Return
( byte )
_header.asByte(index: int, defaultValue: byte) : byte
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
index | int | |
defaultValue | byte |
Return
( byte )
_header.asByte(key: string, defaultValue: byte) : byte
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
key | string | |
defaultValue | byte |
Return
( byte )
asCalendar
_header.asCalendar(key: string) : java.util.Calendar
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
key | string |
Return
( java.util.Calendar )
_header.asCalendar(key: string, defaultValue: java.util.Calendar) : java.util.Calendar
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
key | string | |
defaultValue | java.util.Calendar |
Return
( java.util.Calendar )
asDate
_header.asDate(key: string) : java.util.Date
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
key | string |