cowboy Questions

4

Solved

How can I enable CORS for cowboy rest handler? I tried to add options/2 method, like this: options(Req, State) -> {[ {<<"access-control-allow-origin">>, <<"*">>}, {&l...
Randi asked 25/3, 2013 at 13:21

2

Solved

I am using cowboy( https://github.com/extend/cowboy) for one restful web service, I need to get the params from "http://localhost:8080/?a=1&b=2&c=32" init({tcp, http}, Req, Opts) -> lo...
Sanyu asked 24/7, 2012 at 8:48

1

I'm using: Erlang OTP 21 and Cowboy 2.4 Code: cowboy:start_tls( my_listener, [ {port, Web_Server_Port}, {certfile, Cert_File}, {keyfile, Key_File} ], #{env => #{dispatch => dispatche...
Godly asked 31/10, 2018 at 15:14

3

Solved

I am trying to figure out how to configure Plug.Static without any other framework (Phoenix, Sugar, etc); just Cowboy, Plug and Elixir. I just don't know how to put things together in the Router. ...
Parotitis asked 12/9, 2015 at 20:13

3

Solved

I'm trying to send a MessagePack-encoded message from Cowboy to a browser over WebSocket, and received data is always empty or invalid. I'm able to send binary data from JS to my cowboy handler, bu...
Ardellardella asked 22/3, 2016 at 11:31

2

I know that Cowboy is capable of handling SPDY protocol (not HTTP2, though). However, looking into Phoenix framework source code, I only see http and https calls. Is SPDY ignored? It's pity to have...
Covariance asked 26/1, 2016 at 14:10

1

Solved

I'm currently working in a Phoenix app and had this question when modifying my /config/* files. Currently the configuration for my Endpoint contains the following: config :my_app, MyApp.Endpoint,...
Soraya asked 16/12, 2016 at 20:50

3

Solved

Is it possible to start locally a few Phoenix apps on different ports from the console using some command like mix phoenix.server --port=4001? This one does not work, of course, but, maybe, there i...
Turgescent asked 29/5, 2015 at 23:18

2

Solved

I'm currently developing a website with phoenix and have a video section that should play in the background. Although it works fine on Chrome & Firefox, it does not work on Safari. I suspect ...
Yorgos asked 12/4, 2016 at 14:48

1

I am a newbie of erlang/cowboy, using rebar3 now, as 99's cowboy is using its own erlang.mk system, how can I use rebar3 to build a cowboy release? Thank you in advance.
Abram asked 2/2, 2016 at 7:44

1

I have a server that starts cowboy and ranch as an independent application — that is, they have their own supervisor, they are not in the supervisor tree of my application. Is it best practice to ...
Hurless asked 2/2, 2015 at 6:50

2

I have a Cowboy websocket server and I'd like to register a gen_event handler that sends something over the websocket. I also need to be able to reply to regular synchronous requests with websocket...
Bakki asked 15/11, 2011 at 13:23

1

I developed a chat server using websocket in cowboy, but I want to know if the message sent by server to client success.How can I know?
Electropositive asked 17/8, 2013 at 9:27

4

I'm a MVC web developer who's become very interested in functional programming to write web apps (specifically, I'm captivated by Erlang and Cowboy.) What I'm having trouble finding an answer to/r...
Galba asked 5/6, 2013 at 1:1

2

Solved

In the examples provided on the Cowboy github, and in some of the other examples I have found on-line, there is a one-to-one supervisor that does not seem to do anything. I even believe that I saw ...
Adz asked 5/10, 2012 at 15:57
1

© 2022 - 2024 — McMap. All rights reserved.