http-stream

Crates.iohttp-stream
lib.rshttp-stream
version0.14.2
sourcesrc
created_at2019-03-26 16:39:59.732568
updated_at2020-06-20 16:20:50.361406
descriptionHttp json streaming library
homepage
repositoryhttps://github.com/nikosEfthias/http-streamer
max_upload_size
id123999
size8,222
TA3PKS (ta3pks)

documentation

README

Readme

A thread-safe EventSource library for the fellow Rustaceans.

Examples

	
	let s = Streamer::new();
	let s1=s.clone();
	std::thread::spawn(||s1.start("localhost:1234"));
	
	loop
	{
		std::thread::sleep_ms(1000);
		s.send_with_event("myevent","mydata");
	}

Todo

  • send_with_event
  • send_json
  • new_with_client_timeout
  • new_with_auth
  • resume
Commit count: 18

cargo fmt