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...
Record asked 12/11, 2016 at 9:21

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...
Merrie asked 11/4, 2017 at 7:54

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 = ...
Stencil asked 4/6, 2017 at 22:23

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

i'm begining with Suave and F#. I'm trying to pass a json serialized object in my webpart to get it in my response. In php i have this <?php header('Access-Control-Allow-Credentials:true'); he...
Courlan asked 2/2, 2017 at 22:59

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/...
Coverlet asked 18/1, 2017 at 10:4

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...
Ferguson asked 8/10, 2016 at 10:2

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...
Occidentalize asked 14/8, 2016 at 1:51

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...
Caa asked 2/7, 2016 at 19:55

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...
Pounce asked 30/6, 2016 at 14:31

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...
Madwort asked 14/6, 2016 at 6:3

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....
Electrocautery asked 22/4, 2016 at 19:44

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...
Bowrah asked 11/4, 2016 at 11:30

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...
Laquitalar asked 27/1, 2016 at 19:54

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...
Shadow asked 5/1, 2016 at 3:57

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...
Barbarbarbara asked 7/11, 2015 at 1:40

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...
Brasilein asked 9/10, 2015 at 5:49

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.