Giter Club home page Giter Club logo

http-bridge's Introduction

http-bridge

介绍

golang 实现的远程数据接口代理服务

特点

  • golang实现,轻量、高效率
  • 让不支持跨域的远程数据接口支持跨域
  • 方便未备案(小程序等)、不支持http是接口支持
  • 支持自定义header

使用

http://127.0.0.1:4455/?url=https://www.mxnzp.com/api/image/girl/list?page=1&headers={"token":"1284034","deviceId":"104drldu34","appId":"1453"}
  • 支持方法 GET POST DELETE PUT
  • url 即为需要代理的请求地址
  • headers 自定义header 这里只是为了好看,实际要对header进行encode

自定义headers

  1. 将自定义headers写在请求头里
customHeaderKey1: customHeaderVal1
customHeaderKey2: customHeaderVal2
  1. 将自定义headers作为参数发送

headers={"token":"1284034","deviceId":"104drldu34","appId":"1453"}

请求参数名为```headers`` 其中kv 必须为字符串 实际要对header进行encode

Xshot-0023.png

说明

响应头中x-request-time表示响应时长 毫秒

License

http-bridge is licensed under the Apache License, Version 2.0

http-bridge's People

Contributors

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