Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
- mention that Ctrl+C can be used to interrupt the REPL command (fixes #81)
- apply code syntax colors in README
  • Loading branch information
tanmaykm committed Feb 18, 2020
1 parent 7caf7c5 commit c8cb1b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -59,7 +59,7 @@ using JuliaWebAPI #Load package
#Create the ZMQ client that talks to the ZMQ listener above
const apiclnt = APIInvoker("tcp://127.0.0.1:9999");

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

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

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

````
```julia
function auth_preproc(req::HTTP.Request)
if !validate(req)
return HTTP.Response(401)
end
return nothing
end
run_http(apiclnt, 8888, auth_preproc)
````
```

0 comments on commit c8cb1b4

Please sign in to comment.