Skip to content

jolie/http-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
			}
	}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published