Giter Site home page Giter Site logo

http-record's Introduction

Http-Record

项目初衷是在开发时和第三方集成,通常有些回调在测试阶段需要接收参数进行调试,此项目就是为了在公网记录请求信息。

当然,通常在本地进行内网穿透后,也可以达到相同目的。

另一方面,本项目也作为 kotlin native 的尝试,故而诞生。

使用

Path

  • GET /history 最近50条请求记录
  • ALL /*
    • 参数 echo: 任意字符串
    • 参数 type: 类型 jsontext

使用示例

curl --location --request POST 'localhost:8080/record?echo={%22err_no%22:0,%22err_tips%22:%22success%22}&type=json

# response
application/json,
{"err_no":0,"err_tips":"success"}

安装

docker

$ docker run sivan757/http-record:latest

jar

$ gradle shadowJar

native

$ gradle shadowJar

$ ./build.sh

需要 GraalVm 并安装 native-image,编译产物仅可运行在编译平台。

release

在本项目 release 中,选取对应平台编译后原生程序,直接启动即可。

http-record's People

Contributors

sivan757 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.