0.1.0 • Published 3 years ago

@jolie/http-utils v0.1.0

Weekly downloads
-
License
LGPL 2.1
Repository
-
Last release
3 years ago

Jolie HTTP utils

A utility library for HTTP.

Installation

jpm add @jolie/http-utils

Usage example

from @jolie.http-utils import HttpUtils

service Example {
	embed HttpUtils as httpUtils

	main {
		// Connect to the stream
		connectStream@httpUtils( {
			uri = "https://your-website"
		} )( sid )

		provide
			[ next( mesg ) ] {
				// Received a message in the stream
			}
		until
			[ end( m ) ] {
				// Stream ended
			}
	}
}