Swift audio file handling rest API

any idea on how to post audio to a url and stream it on another machine? both server side and client side. Any gist of suggestions will do. Thanks in advance

i think thats more server/ api related than swift, its enough to have knowledge on AVFoundation to play audio from an URL