suave Questions
3
Solved
I've started learning F# and Suave and I'm reading the book F# Applied.
One thing I'm struggling with is the warbler function. I know its something to do with deferring execution but I don't real...
1
We are a startup and currently in the evaluation mode for using SUAVE with F# as the web application development framework. I am very enthusiastic for using the SUAVE framework for developing my ap...
2
Solved
I'm trying to get my Suave API to accept CORS requests. I've followed this snippet here:
http://www.fssnip.net/mL/title/CORS-response-with-Suave
Which I will recreate here:
let setCORSHeaders =
...
0
As part of an evaluation process for a commercial project I'm searching for any full fledged example of authentication/authorization using the websharper stack. I'd like to use OWIN, since it seems...
Cleruchy asked 10/2, 2017 at 12:39
2
Solved
1
Solved
I've been looking into using websockets with the Suave web server. Unfortunately, it's not very well documented, and all I've managed to find was this: https://github.com/SuaveIO/suave/tree/master/...
0
I'm hosting my web application on azure web app by using suave and following the recommended guide.
My app was running like a charm until some days ago something went horribly wrong:
The proces...
Ethology asked 12/12, 2016 at 9:20
1
Solved
I want to understand how to control when responses are 'cached' versus when they are 'recalculated'.
As an example:
[<EntryPoint>]
let main [| port |] =
let config =
{ defaultConfig wit...
2
Solved
I just started working through Tamizhvendan S' book F# Applied and came across this code snippet:
type WebPart = Context -> Async<Context option>
I've been looking through Microsoft's F...
1
Solved
I'm following the suave tutorial and I'm struggling to return a JSON to the front end. I currently have the code. (I'm not using the Chiron package). I can start the web server just fine but when I...
1
Solved
I have a simple Suave.io server in the form:
let Ok o = o |> JsonConvert.SerializeObject |> Successful.OK
let NotOk o = o |> JsonConvert.SerializeObject |> RequestErrors.BAD_REQUEST
t...
3
I want to dynamically generate an image on server side and send it to the browser.
Currently I'm using a MemoryStream to convert it to byte array and then usual suave api. See bellow:
let draw (t...
2
Solved
I've recently started with Suave; I setup a project using yeoman and the F# generator. To run the app, I build an executable using Fake and then run it. Whenever I change any of the app files, i.e....
1
Solved
I have a web service with a hello world endpoint like this:
let app =
choose [
GET >=>
choose [
path "/hello" >=> OK "Hello World!"
pathScan "/hello/%s" (fun name -> OK (spr...
1
Solved
I'll like to serve all files in my 'public' folder with suave
Inside my public I have:
/index.html
/styles/main.css
/scripts/app.js
/images/*.(png|jpg)
Do I use a homeFolder? Or how does this w...
1
Solved
I am working on Suave 1.0 + Angular 2.0 sample app and very interesting to start Suave server in watch mode, so the server watch file changes (js,css,html) in root folder and sub-folders and automa...
1
Solved
I'm trying to run the demo code for suave (a webserver) in Xamarin Studio 5.9.8 on OS X El Capitan.
module ServerTest =
open Suave // always open suave
open Suave.Http.Successful // for OK-resul...
2
can I write something like this
let echo (ws: WebSocket) =
fun ctx -> socket {
let loop = ref true
while !loop do
let! message = Async.Choose (ws.read()) (inbox.Receive())
match message w...
1
Solved
I'm just getting up and running with Suave.io. I'm sure this will become clearer as I dig more into Applicatives - but from a high level I can't see how to write a pathScan rule that applies the re...
Bankbook asked 28/7, 2015 at 9:16
1
It is possible to run a suave.io app on Azure Web Apps because of an IIS8 feature called HttpPlatformHandler. I tried to run a self-hosted OWIN application the same way, but got an exception on sta...
Flit asked 29/4, 2015 at 6:47
1
© 2022 - 2024 — McMap. All rights reserved.