wixHttpFunctionRequest


wixHttpFunctionRequestWixHttpFunctionRequestRead-only

An object representing an incoming request received by a call to an HTTP function.

The WixHttpFunctionRequest object breaks the URL of the incoming call to an HTTP function into different parameters for easy access.

The URL of the incoming call to an HTTP function is broken into:

For premium sites, the URL of the incoming call has the following format: https://www.domain.com/_functions/myFunction/sub?q=value

  • baseUrl:     https://www.domain.com/_functions
  • path:          sub
  • query:        q=value

For free sites, the URL of the incoming call has the following format: https://user_name.wixsite.com/mysite/_functions/myFunction/sub?q=value

  • baseUrl:     https://user_name.wixsite.com/mysite/_functions
  • path:          sub
  • query:        q=value
Was this helpful?
Yes
No