Skip to content

ballsteve/xrust-net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

χrust-net

Networking support for the χrust crate.

This crate provides a library with a function to resolve a URL to the content of the resource. In other words, it fetches a URL and returns a String containing the document.

The intended use for this function is in the import and include methods for χrust's xslt module. One of the from_document function's argument is a closure. Use the resolve function in that closure, for example:

from_document(
    style,
	&mut sc,
	Some(Base URI),
	|s| make_document(s),
	|url| resolve(url),
)

See the test in resolver.rs for a complete example.

About

Network support for the xrust crate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published