Module
Yoga.Fastify.Fastify
- Package
- purescript-yoga-fastify
- Repository
- rowtype-yoga/purescript-yoga-fastify
#FastifyRequest Source
data FastifyRequestOpaque request object
#FastifyReply Source
data FastifyReplyOpaque reply object
#RouteHandler Source
type RouteHandler = FastifyRequest -> FastifyReply -> Aff UnitRoute handler type: takes request and reply, returns Aff Unit
#HttpServer Source
data HttpServer#HttpRequest Source
data HttpRequest#HttpResponse Source
data HttpResponse#ajvOptions Source
ajvOptions :: forall opts opts_. Union opts opts_ AjvCustomOptionsImpl => Record opts -> AjvOptions#routeSchema Source
routeSchema :: forall opts opts_. Union opts opts_ RouteSchemaImpl => Record opts -> RouteSchema#routeConfig Source
routeConfig :: forall opts opts_. Union opts opts_ RouteConfigImpl => Record opts -> RouteConfig#ListenOptionsImpl Source
type ListenOptionsImpl :: Row Typetype ListenOptionsImpl = (host :: Host, port :: Port)
#RouteOptionsImpl Source
type RouteOptionsImpl :: Row Typetype RouteOptionsImpl = (config :: RouteConfig, method :: HTTPMethod, schema :: RouteSchema, url :: RouteURL)
#FastifyOptionsImpl Source
type FastifyOptionsImpl :: Row Typetype FastifyOptionsImpl = (ajv :: AjvOptions, bodyLimit :: Int, disableRequestLogging :: Boolean, logger :: Boolean, requestIdHeader :: String, requestIdLogLabel :: String)
#AjvCustomOptionsImpl Source
type AjvCustomOptionsImpl :: Row Typetype AjvCustomOptionsImpl = (allErrors :: Boolean, coerceTypes :: Boolean, removeAdditional :: Boolean)
#RouteSchemaImpl Source
type RouteSchemaImpl :: Row Typetype RouteSchemaImpl = (body :: JsonSchema, headers :: JsonSchema, params :: JsonSchema, querystring :: JsonSchema, response :: Foreign)
#RouteConfigImpl Source
type RouteConfigImpl :: Row Typetype RouteConfigImpl = (rateLimit :: Foreign)
#route Source
route :: forall opts opts_. Union opts opts_ RouteOptionsImpl => Record opts -> RouteHandler -> Fastify -> Effect Unit#method Source
method :: FastifyRequest -> Effect HTTPMethod#status Source
status :: StatusCode -> FastifyReply -> Effect FastifyReply#header Source
header :: String -> String -> FastifyReply -> Effect FastifyReply#rawRoute Source
rawRoute :: Array String -> (HttpRequest -> HttpResponse -> Effect Unit) -> Fastify -> Effect Unit#onUpgrade Source
onUpgrade :: HttpServer -> (HttpRequest -> NetSocket -> Buffer -> Effect Unit) -> Effect Unit- Modules
- Yoga.
Fastify. Auth. Argon2 - Yoga.
Fastify. Auth. JWT - Yoga.
Fastify. Fastify - Yoga.
Fastify. Plugin - Yoga.
Fastify. Plugin. Cors - Yoga.
Fastify. Plugin. Helmet - Yoga.
Fastify. Plugin. RateLimit - Yoga.
Fastify. Plugin. WebSocket - Yoga.
Fastify. Route. HandleResponse - Yoga.
Fastify. Route. HandleRoute - Yoga.
Fastify. Route. ParseBody - Yoga.
Fastify. Route. ParseHeaders - Yoga.
Fastify. Route. ParsePathParams - Yoga.
Fastify. Route. ParseQueryParams - Yoga.
Fastify. Route. SetHeaders