Yoga.HTTP.API.Route.Encoding
- Package
- purescript-yoga-http-api
- Repository
- rowtype-yoga/purescript-yoga-http-api
#FormData Source
data FormData aForm data encoded request body (application/x-www-form-urlencoded)
Example: Request { body :: FormData { username :: String, password :: String } }
#MultipartFormData Source
data MultipartFormData aMultipart form data encoded request body (multipart/form-data)
Example: Request { body :: MultipartFormData { file :: FileUpload } }
#MultipartFile Source
data MultipartFileOpaque bytes for a file field produced by a multipart parser. The type prevents ordinary text fields and uploaded bytes being confused.
Instances
#multipartFileBytes Source
multipartFileBytes :: MultipartFile -> Uint8ArrayAccess uploaded bytes without copying.
#XML Source
data XML aXML encoded request/response body (application/xml)
Example: Request { body :: XML XmlDocument }
#CustomContentType Source
data CustomContentType :: Symbol -> Type -> Typedata CustomContentType mime a
Custom content type with explicit MIME type
Example: Request { body :: CustomContentType "application/vnd.api+json" User }
#Streaming Source
data Streaming t0A standards-based Web ReadableStream used as an HTTP response body.
pull is called only when the consumer requests another chunk. Returning
Nothing closes the stream; disconnecting the consumer runs cancel.
Instances
#StreamChunk Source
data StreamChunkA chunk representation accepted by Node and Web byte streams.
#textChunk Source
textChunk :: String -> StreamChunkConstruct a textual stream chunk.
#binaryChunk Source
binaryChunk :: Uint8Array -> StreamChunkConstruct a binary stream chunk without copying its Uint8Array.
- Modules
- Yoga.
HTTP. API. Path - Yoga.
HTTP. API. Route - Yoga.
HTTP. API. Route. Auth - Yoga.
HTTP. API. Route. BearerToken - Yoga.
HTTP. API. Route. Encoding - Yoga.
HTTP. API. Route. Handler - Yoga.
HTTP. API. Route. HeaderError - Yoga.
HTTP. API. Route. HeaderValue - Yoga.
HTTP. API. Route. Method - Yoga.
HTTP. API. Route. OpenAPI - Yoga.
HTTP. API. Route. OpenAPIMetadata - Yoga.
HTTP. API. Route. RenderMethod - Yoga.
HTTP. API. Route. Response - Yoga.
HTTP. API. Route. Route - Yoga.
HTTP. API. Route. RouteHandler - Yoga.
HTTP. API. Route. StatusCode