ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
137 stars 58 forks source link

Add `anydata` support in the `setPayload` methods #6954

Closed TharmiganK closed 2 weeks ago

TharmiganK commented 3 weeks ago

Description:

$Subject

Describe your problem(s)

The setPayload method in the http:Request and http:Response does not support anydata values. Currently it supports only the following types: string|xml|json|byte[]|mime:Entity[]|stream<byte[], io:Error?>

Describe your solution(s)

Add support for anydata in the setPayload methods

Related Issues (optional):

Identified from: https://github.com/ballerina-platform/ballerina-library/issues/6906