Skip to content

alexferl/vest

Repository files navigation

vest

REST client in V.

Installing

v install alexferl.vest

Using

More complex examples here.

import context
import alexferl.vest

fn main() {
	c := vest.new(vest.with_base_url('https://httpbin.org'))

	resp := c.get(context.background(), '/get') or {
		eprintln(err)
		return
	}

	println(resp.body)
}