vibe.d beta banner
get vibe.d
0.8.1

Asynchronous I/O that doesn’t get in your way, written in D

Function noRoute

Methods marked with this attribute will not be treated as web endpoints.

vibe.web.web.NoRouteAttribute noRoute () @property;

This attribute enables the definition of public methods that do not take part in the interface genration process.

Example

interface IAPI {
	// Accessible as "GET /info"
	string getInfo();

	// Not accessible over HTTP
	@noRoute
	int getFoo();
}
Authors

Sönke Ludwig

Copyright

© 2013-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.