FCF 2.0 development in progress...
> > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

fcf.RouteInfo class

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

The class that describes information about a URL's route

Properties
string url - Full URL
string referer - URL without arguments and anchor
string uri - URI without domain, arguments and anchor
object urlArgs - Request url arguments with automatic conversion to JS types
object urlArgsRaw - Query URL arguments without conversion to JS types
string urlArgsStr - URL arguments as string
object postArgs - POST request arguments with automatic conversion to JS types. Set on the server side when processing a received request. urlArgs analog
object postArgsRaw - Query POST arguments without conversion to JS types. Set on the server side when processing a received request. urlArgsRaw analog
object args - Query POST and GET arguments with conversion to JS types
object argsRaw - Request POST and GET arguments without automatic conversion to JS types
string anchor - Anchor value
string server - Server name / domain
string protocol - Protocol name (http/https)
int port - Port number if specified in the URL
Methods
constructor(string a_url, string a_relativeMode = "relative", object a_postArgs = {})
constructor(fcf.RouteInfo a_routeInfo, string a_relativeMode = "relative", object a_postArgs = {})
- Class constructor