This object is passed as parameter to RequestHandler.OnBeforeResourceLoad() and RequestHandler.OnResourceResponse().
Table of contents:
Return | bool |
Returns true if this object is read-only.
Return | int |
Get the response status code.
Parameter | Type |
---|---|
status | int |
Return | void |
Set the response status code.
Return | string |
Get the response status text.
Parameter | Type |
---|---|
statusText | string |
Return | void |
Set the response status text.
Return | string |
Get the response mime type.
Parameter | Type |
---|---|
mimeType | string |
Return | void |
Set the response mime type.
Parameter | Type |
---|---|
name | string |
Return | string |
Get the value for the specified response header field.
Return | dict |
Get all header fields with duplicate keys overwritten by last.
Return | list |
Get all header fields. Returns list of tuples (name, value). Headers may have duplicate keys, if you want to ignore duplicates use GetHeaderMap().
Parameter | Type |
---|---|
headerMap | dict |
Return | void |
Set all header fields.
Parameter | Type |
---|---|
headerMultimap | list |
Return | void |
Set all header fields. headerMultimap
must be a list of tuples (name, value).