com.litongjava.tio.boot.swagger.SwaggerResourceHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tio-boot Show documentation
Show all versions of tio-boot Show documentation
Java High Performance Web Development Framework
package com.litongjava.tio.boot.swagger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.litongjava.tio.boot.http.TioRequestContext;
import com.litongjava.tio.http.common.HttpRequest;
import com.litongjava.tio.http.common.HttpResponse;
public class SwaggerResourceHandler {
/**
* 处理 /swagger-resources 请求
*
* @param request HTTP 请求
* @return HTTP 响应,包含 Swagger 资源信息
*/
public HttpResponse index(HttpRequest request) {
HttpResponse response = TioRequestContext.getResponse();
List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy