Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WebRequest.GetMode
Queries mode of request.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebHook | 13.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "WebRequest.GetMode"; WebRequest ) More
Parameters
Parameter | Description | Example |
---|---|---|
WebRequest | The reference number of the web request. | $WebRequest |
Result
Returns number or error.
Description
Queries mode of request.Returns the mode of the webhook applied to the request.
Value | Description |
0 | Answer was sent and connection is closed. |
1 | The connection is kept open after receiving a HTTP request and you can send an answer yourself. |
2 | This is a RAW request and the answer was sent. |
3 | The connection is kept open after receiving a RAW request and you can send an answer yourself. |
See also
- WebRequest.GetBody
- WebRequest.GetHeaders
- WebRequest.GetHost
- WebRequest.GetSize
- WebRequest.GetSSL
- WebRequest.GetState
- WebRequest.GetTag
- WebRequest.GetURL
- WebRequest.Release
- WebRequest.SetTag
Release notes
- Version 13.0
- Added WebRequest.GetMode function.
Blog Entries
This function checks for a license.
Created 2nd December 2022, last changed 2nd December 2022