This object is passed as parameter to RequestHandler.OnBeforeResourceLoad().
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.
| Parameter | Type |
|---|---|
| name | string |
| value | string |
| override | bool |
| Return | void |
Set the header |name| to |value|. If |overwrite| is true any existing values will be replaced with the new value. If |overwrite| is false any existing values will not be overwritten.
| Parameter | Type |
|---|---|
| Return | dict |
Get all header fields with duplicate keys overwritten by last.
| Parameter | Type |
|---|---|
| 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).