Giter VIP home page Giter VIP logo

httpstatus's Introduction

HTTP STATUS

HTTP.DEVTOOL.TECH 可通过路径名称直接访问到对应的状态码。如:

本网站内容参考以下网站

工具推荐

代码示例

API

除了状态码,本站还提供了 API 用于 HTTP 测试。

Cookie

获取所有 Cookie,配置 Cookie,并支持配置属性如 Domain、Path、SameSite、MaxAge 等。

# 获取 Cookies
$ curl https://http.devtool.tech/api/cookies

# 配置 Cookie 为 a: 3
$ curl https://http.devtool.tech/api/cookies/set/a/3

# 配置 Cookie 为 a: 3,且 httpOnly: true, secure: true, maxAge: 100, sameSite: Lax
$ curl https://http.devtool.tech/api/cookies/set/a/3?secure=true&httpOnly=true&maxAge=100&sameSite=Lax

缓存

配置服务器端的 Cache Control 以及 Age 属性,用以测试缓存。

目前部署在 Vercel 中,Age 会被 Proxy 所拦截。

# 配置 Cache-Control
$ curl https://http.devtool.tech/api/cache?cacheControl=no-store&age=1000

# 配置 Cache-Control: 100
$ curl https://http.devtool.tech/api/cache/100

# 配置 Cache-Control: 31536000
$ curl https://http.devtool.tech/api/cache/31536000

httpstatus's People

Contributors

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