Questions tagged [yaws]

Yaws is a high perfomance HTTP 1.1 webserver particularly well suited for dynamic-content web applications.

Yaws is a high performance HTTP 1.1 web server particularly well suited for dynamic-content web applications. Two separate modes of operation are supported:

  • Standalone mode where Yaws runs as a regular web server daemon. This is the default mode.
  • Embedded mode where Yaws runs as an embedded web server in another Erlang application.

Yaws is entirely written in Erlang, and furthermore it is a multi-threaded web server where one Erlang lightweight process is used to handle each client.

The main advantages of Yaws compared to other Web technologies are performance and elegance. The performance comes from the underlying Erlang system and its ability to handle concurrent processes in an efficient way. Its elegance comes from Erlang as well. Web applications don't have to be written in ugly ad hoc languages.

See more: https://github.com/erlyaws/yaws

193 questions
0
votes
2 answers

How i can send data from mnesia via websocket

I have mnesia DB with table artists: (gw@gw)227> lookup:for_test(). {atomic,["Baltic Baroque","Anna Luca","Karel Boehlee Trio", "Bill Evans","Dino Saluzzi and Anja Lechner", "Bill Evans Trio with Stan Getz","Duke Pearson", "The John…
Black_13
  • 51
  • 5
0
votes
1 answer

Record not found

I follow the REST API with yaws tutorial of the 'Building web application with Erlang' book. I get the following error when starting $ yaws : file:path_eval([".","/Users/"],".erlang"): error on line 3: 3: evaluation failed with reason…
btype
  • 1,593
  • 19
  • 32
0
votes
1 answer

yaws not building on CentOS after erlang build OK

Problem: yaws configure is failing after autoconf with unable to find erl Question: Why this error is showing, because erl can be found from a bash shell from anywhere which erl --> /usr/local/bin/erl Thanks.
0
votes
1 answer

Output data of Erlang List as a HTML in Yaws

Have a look at my index.yaws file below

Data:

out(Arg) -> Data = utilities:get_raw_data(), {html, io_lib:format("~p", [Data])}. out(Arg)…
Benda
  • 110
  • 3
  • 14
0
votes
0 answers

Yaws server is not accessible outside of local network

I am trying to host erlang Yaws web server on my Raspberry Pi. I am using no-ip as dynamic DNS. My router is Thomson ST780. On the router I have made port forwarding from port 50001 to port 8081 on my Raspberry Pi. My server is accessible from…
gljivar
  • 440
  • 7
  • 19
0
votes
1 answer

How can I get a handle of a WebSocket client in Yaws?

Is there any way to get a "handle" (e.g. a Pid) to a client when using the handle_message/1 callback? so I can send messages to specific clients, and spawn processes with a list of clients as argument (e.g. for a game/chat session) for a specific…
Jonas
  • 121,568
  • 97
  • 310
  • 388
0
votes
1 answer

Yaws "process died" when yaws_api specific code is used

I have a small yaws appmod test: -module(webservice). -include("../include/yaws_api.hrl"). -compile(export_all). http(parse_query,Arg) -> yaws_api:parse_query(Arg); out(Arg) -> {html, [http(parse_query,Arg)]}. When the…
S-K'
  • 3,188
  • 8
  • 37
  • 50
0
votes
2 answers

Couchbeam in YAWS page

I am here because I am trying to use Couchbeam form my page on a YAWS. I have tested CB and it worked correctly from Terminal, using: erl -pa ebin -pa deps/ibrowse/ebin -s couchbeam Now I am trying to replicate what I did locally on my webpage. I…
N3sh
  • 881
  • 8
  • 37
0
votes
2 answers

Erlang yaws call function in another node

Having trouble with this... rpc:call('app@anothernode',module,function,args) ..from within a .yaws file. ('module' just returns an ehtml snippet) The issue is I can't find where to set the erlang magic cookie in order to connect to the other node…
0
votes
2 answers

Failed to load setuid_drv: "Driver compiled with incorrect version of erl_driver.h" when running Yaws

I installed the latest release of Erlang and the lastet Yaws from the master branch. But when I try to run yaws I get an error of `Driver compiled with incorrect version of erl_driver.h". How can I fix this? Doesn't Yaws run on the latest Erlang…
Jonas
  • 121,568
  • 97
  • 310
  • 388
-1
votes
1 answer

How do I stream content with Yaws?

I read about Yaws: streaming data to the client. I created a simple example shown below, but it doesn't work. I get an error and the process is dying. Here is my yaws-file: out(A) -> Self = self(), spawn(fun() -> …
Jonas
  • 121,568
  • 97
  • 310
  • 388
-1
votes
1 answer

SockJS-Erlang and Yaws Webserver

Thanks in advance but can anyone provide some guidance how I would use sockjs-erlang together with the Yaws Web Server. I have found some material on sockjs and cowboy but none on Yaws. Thanks
user557513
  • 117
  • 1
  • 5
-1
votes
2 answers

How get data from Mnesia and print by Yaws

Please, help find info about building on Erlang application what can print various info from Mnesia by Yaws Best regards, and many thanks for help.
Black_13
  • 51
  • 5
1 2 3
12
13