Eheheh
it literally takes 2 seconds using your gmail account. And is well worth it.(I would try to ask it but cba to sign up for it)
srvr.AddHandler("/hello", "GET", AddressOf Hello)
Sub Process_Globals
'Declare global variables here.
Dim srvr As Server
End Sub
Sub AppStart (Args() As String)
'Start the server and define the API endpoints.
srvr.Initialize("")
srvr.Port = 8080
srvr.AddHandler("/hello", "GET", False, AddressOf Hello)
srvr.Start
End Sub
Sub Hello(req As HttpRequest, resp As HttpResponse)
'Handle requests to the /hello endpoint.
resp.ContentType = "text/plain"
resp.Write("Hello, World!")
End Sub
srvr.AddHandler("/hello", "GET", False, AddressOf Hello)
Sub Hello(req As HttpRequest, resp As HttpResponse)
'Handle requests to the /hello endpoint.
resp.ContentType = "text/plain"
Select req.Method
Case "GET"
resp.Write("Hello, World! (GET method)")
Case "POST"
resp.Write("Hello, World! (POST method)")
Case "PUT"
resp.Write("Hello, World! (PUT method)")
Case "DELETE"
resp.Write("Hello, World! (DELETE method)")
Case Else
resp.Write("Hello, World! (Unknown method)")
End Select
End Sub
Sub AppStart (Args() As String)
'Start the server and define the API endpoints.
srvr.Initialize("")
srvr.Port = 8080
srvr.AddHandler(ROOT_PATH & "hello/*", "GET", False, AddressOf HelloHandler)
srvr.Start
End Sub
Sub HelloHandler(req As HttpRequest, resp As HttpResponse)
'Handle requests to the /hello/* endpoint.
resp.ContentType = "text/plain"
resp.Write("Hello, World!")
End Sub
'Handler class
Sub Class_Globals
End Sub
Public Sub Initialize
End Sub
Sub Handle(req As ServletRequest, resp As ServletResponse)
End Sub
If the AI is learning from mistake, like a child, then it should save the answer of Aeric as marked YES by user and show the same to next user who ask for it.@aeric I am pretty sure if you ask the same... you will get wrong answer again !
You're right!@aeric I am pretty sure if you ask the same... you will get wrong answer again !
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?