wix-http-functions
HTTP functions are used to expose an API of your site's functionality. Learn more.
Additional information about this section
Store values associated with an object
- wixHttpFunctionRequest
An object representing an incoming request received by a call to an HTTP function.
Perform actions on an object
- badRequest( )
Returns a response with status code 400 (Bad Request) and the information from the options parameter.
- created( )
Returns a response with status code 201 (Created) and the information from the options parameter.
- delete( )
A function that responds to requests made with the HTTP DELETE method.
- forbidden( )
Returns a response with status code 403 (Forbidden) and the information from the options parameter.
- get( )
A function that responds to requests made with the HTTP GET method.
- notFound( )
Returns a response with status code 404 (Not Found) and the information from the options parameter.
- ok( )
Returns a response with status code 200 (OK) and the information from the options parameter.
- options( )
A function that responds to requests made with the HTTP OPTIONS method.
- post( )
A function that responds to requests made with the HTTP POST method.
- put( )
A function that responds to requests made with the HTTP PUT method.
- response( )
Returns a response populated with the information from the options parameter. The response() function creates a custom response built with the information ...
- serverError( )
Returns a response with status code 500 (Internal Server Error) and the information from the options parameter.
- use( )
A function that responds to requests made with any HTTP method.
- WixHttpFunctionRequest
An object representing an incoming request received by a call to an HTTP function.
- WixHttpFunctionResponse
An object representing a response to an HTTP function request.