Giter Site home page Giter Site logo

mini-redis-httpclient's Introduction

README

Introduce

本仓库是浙江大学短学期Rust课程对RPC框架实现的mini-redis包装的http配套的http-client测试,需要在http服务端正常运行之后才能正常使用。

使用reqwest模拟http行为进行测试,http相应的返回会直接显示在命令行上

How to use

在项目根目录使用cargo run

Test Result

在http和rpc服务器都正确部署和运行的情况下,运行测试

  1. ping http服务器

  2. 通过http请求,间接的ping rpc服务器

  3. 在redis服务器上设置一个键值对“key”-“value”

  4. 在redis服务器上查找一个键“key”对应的值

  5. 在redis服务器上删除一个键“key”

  6. 在删除后尝试查找不存在在的键“key‘对应的值

  7. 尝试重复删除,删除不存在的键”key“

结果如下

  • reqwest_result.png

结果符合预期,判断服务器运行正常

Beg score

球球助教给好分

mini-redis-httpclient's People

Contributors

wtbg 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.