Module
Solid.Start.RequestEvent
- Package
- purescript-purs-solid
- Repository
- arazorda/purs-solid
The current server request, available in middleware, server functions and during rendering. On the client there is none.
#RequestEvent Source
data RequestEvent#request Source
request :: RequestEvent -> Request#setCookie Source
setCookie :: forall given missing. Union given missing CookieOptions => String -> String -> Record given -> RequestEvent -> Effect UnitTakes any subset of CookieOptions. Unset fields default to path /,
HttpOnly, Secure and SameSite=Lax.
#deleteCookie Source
deleteCookie :: forall given missing. Union given missing CookieOptions => String -> Record given -> RequestEvent -> Effect UnitExpires the cookie. Pass the path and domain it was set with.
#setResponseStatus Source
setResponseStatus :: Int -> RequestEvent -> Effect UnitFor middleware and server functions; while rendering, use
Solid.Start.Response.httpStatus.
#setResponseHeader Source
setResponseHeader :: String -> String -> RequestEvent -> Effect Unit#appendResponseHeader Source
appendResponseHeader :: String -> String -> RequestEvent -> Effect Unit- Modules
- Solid.
Action - Solid.
Async - Solid.
Component - Solid.
Component. JS - Solid.
Context - Solid.
Control - Solid.
DOM - Solid.
DOM. Aria - Solid.
DOM. AttrValue - Solid.
DOM. HTML - Solid.
DOM. SVG - Solid.
Errors - Solid.
Internal. Action - Solid.
Internal. Equality - Solid.
Internal. Identity - Solid.
Internal. Names - Solid.
Internal. Optimistic - Solid.
Internal. Props - Solid.
Internal. Reply - Solid.
Internal. Serializable - Solid.
Internal. ServerFunction - Solid.
Internal. Setup - Solid.
Internal. Store - Solid.
Internal. Tracked - Solid.
Internal. View - Solid.
JSX - Solid.
Lifecycle - Solid.
Meta - Solid.
Owner - Solid.
Reactivity - Solid.
Root - Solid.
Router - Solid.
Router. Action - Solid.
Router. Path - Solid.
Router. Query - Solid.
Router. Search - Solid.
Setup - Solid.
Signal - Solid.
Start. Middleware - Solid.
Start. RequestEvent - Solid.
Start. Response - Solid.
Start. ServerFunction - Solid.
Start. UseServer - Solid.
Store - Solid.
Testing - Solid.
Utility - Solid.
Web - Solid.
Web. SSR