utils/body_utils library
Functions
-
parseBodyAsJson(
{required List< int> bytes}) → dynamic -
parseJsonString(
String jsonString) → FutureOr< Either< Map?, List?> ?> -
parseRequestBody(
HttpRequest request, {Duration timeout = const Duration(seconds: 360)}) → Future -
readRequestBody(
H4Event event) → Future - Read the body of the incoming event request. Returns the request body either as parsed json or a string.