src/BloomExe/web/controllers/ApiRequest.cs
/// <summary>
/// Get a boolean value that was passed as application/json
/// </summary>
/// <remarks>
/// Used by BloomServer.RegisterBooleanEndpointHandler() and requires something like this:
///    axios.post("api/bloom/foo", myBool, {
///       headers: { "Content-Type": "application/json" }});
/// </remarks>
/// <returns></returns>
Get a boolean value that was passed as application/json
Get a boolean value that was passed as application / json
internal bool RequiredPostBooleanAsJson()
		{
			return RequiredPostJson() == "true";
		}
internal bool RequiredPostBooleanAsJson ( ) { return RequiredPostJson ( ) == " " ; }
Get a boolean value that was passed as application/json
Get a boolean value that was passed as application / json
// There isn't an obvious choice for passing a simple true/false, but a plain true/false counts as json: // https://tools.ietf.org/html/rfc7493#section-4.1  Note we don't have to be compatible with old parsers. so we can just return true or false
None
remarks
Used by BloomServer.RegisterBooleanEndpointHandler() and requires something like this:
axios.post("api/bloom/foo", myBool, {
headers: { "Content-Type": "application/json" }}).
Used by BloomServer . RegisterBooleanEndpointHandler () and requires something like this : axios . post ( " api / bloom / foo " myBool { headers : { " Content - Type " : " application / json " }} ) .