Skip to content

Commit c8cb1b4

Browse files
authored
update README.md
- mention that Ctrl+C can be used to interrupt the REPL command (fixes #81) - apply code syntax colors in README
1 parent 7caf7c5 commit c8cb1b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ using JuliaWebAPI #Load package
5959
#Create the ZMQ client that talks to the ZMQ listener above
6060
const apiclnt = APIInvoker("tcp://127.0.0.1:9999");
6161

62-
#Starts the HTTP server in current process
62+
#Start the HTTP server in current process (Ctrl+C to interrupt)
6363
run_http(apiclnt, 8888)
6464
```
6565

@@ -71,12 +71,12 @@ This will return the following JSON response to your browser, which is the resul
7171

7272
Example of an authentication filter implemented using a pre-processor:
7373

74-
````
74+
```julia
7575
function auth_preproc(req::HTTP.Request)
7676
if !validate(req)
7777
return HTTP.Response(401)
7878
end
7979
return nothing
8080
end
8181
run_http(apiclnt, 8888, auth_preproc)
82-
````
82+
```

0 commit comments

Comments
 (0)