What methods and classes are used for this?
It seems to be nothing complicated:
@Override public Response serve(IHTTPSession session) { session.getCookies().set(new Cookie("uid", "123")); return newFixedLengthResponse("<html><body><h1>Hello server</h1></body></html>\n"); }
Source: https://ru.stackoverflow.com/questions/551416/More articles:Press the XAML item to the bottom of the menu bar (hamburger) and remove the “emptiness”Problem with setAttribute () / removeAttribute when selecting an item via radio-buttonBitrix. Properties of the goods / equipment in the letter template by email.Can't use a CONTAINS or FREETEXT predicate on table or indexed view because it is not full-text indexedHow to cache incoming token?Python import using ipdbSQL Update multiple lines in one queryWhat is the meaning of the words “pure superset”?Parsing large XML in PHPHow to choose a selector with an attribute that contains a variable?All Articles