rest - How to create Http Response with Dart -
i trying follow along 1 of dart httpserver examples github, and, while show how create , handle routes, i'm still @ loss on how produce , send httpresponce
in response specific url being requested.
for example, while working webapi, have api controller, in explicitly define action get, put, delete , post verbs, , return appropriate httpresponse
resource each such method.
does know how typical crud business done using dart http server?
once receive httprequest
need use response
attribute answer.
void sendok(httprequest request, [content]) { request.response ..statuscode = httpstatus.ok ..write(content) ..close() ; }
Comments
Post a Comment