GenUnitApp


Server

Namespace: GenUnitApp

Functions and values

Function or valueDescription
app processRequest
Signature: processRequest:('?19892 -> '?19893) -> WebPart<HttpContext>
Type parameters: '?19892, '?19893

Create the server app with a function that processes request posts.

evaluate ctx
Signature: ctx:HttpContext -> Async<HttpContext option>
getConfig home port
Signature: home:string -> port:string -> SuaveConfig

Get the server configuration with home folder home and port port.

listLast list
Signature: list:'T list -> 'T
Type parameters: 'T

Utility to get the last element in a list

msg
Signature: string
NOT_FOUND_RESPONSE
Signature: string
setCORSHeaders
Signature: HttpContext -> Async<HttpContext option>

Utility function to set the headers to allow cross origin requests

start home port
Signature: home:string -> port:string -> unit

Start the GenUnitApp with home home and port port.

Fork me on GitHub