Q:

How to say "serve" in "The server serves the request"?

In the computers field, a server serves a request (ex: web server).
How to express that in Japanese?
English example documentation for a method that serves a request:
/**
 * Serve the request.
 */
public Response serve(Request request)

I want to translate that documentation to Japanese, so I write リクエストを____

A:

I doubt there is a direct equivalent. If you don't mind rephrasing it, you can use:

配信する (to distribute)
応答する (to respond)
処理する (to process)

But in programming contexts, just using サーブする is also a good idea. There is no good kanji word for server, after all.
EDIT: The reason why serve is difficult to translate literally is because one can say both "serve a request" (the object is something coming into the server) and "serve a file" (the object is something going out of the server). 応答 and 処理 are close to the former sense, and 配信 is close to the latter sense. I think サーブする covers both meanings.

