Questions tagged [opine]
4 questions
1
vote
1 answer
How to extend the Response in Opine (Deno framework)?
first question here.
Does anyone know how to extend the response in Opine (Deno framework) so that I can create custom responses?
For example I would like to create:
res.success(message)
So that I don't need to set HTTP codes every time like…

floco
- 13
- 5
1
vote
1 answer
How would I get the listener port from Opine as I would in Express?
I'm trying to use this code I normally used in express, but in Opine with Deno and it doesn't work, is there any way that I can get the port from the listener function on Opine?
let listener = app.listen(randomPort, function(){
…

pisanvs
- 67
- 1
- 5
1
vote
1 answer
Deno - opine router. How to read values from page?
I'm working as a beginner with Deno and the Opine framework. The first page is for login, but I can't read values of the form fields.
Form :
-1
votes
1 answer
Get url parameters in Deno using Opine or other Deno Library
I'm using Deno and Opine to create an API, how to get the data from the parameters sent via the url Get method? It can be with Opine or another library.
Parameters i want to get: access_token, refresh_token, token_type
Here is an example…

Gouveia
- 29
- 6