Git Product home page Git Product logo

httpservice's Introduction

HttpService

这是一个常驻的http web服务器,能通过它在android上搭建一个android常驻的web service,进而通过web端口来对android内部的文件,以及公开的服务进行操作

该项目依赖于开源轻量级http java web服务器 NanoHTTPD(https://github.com/NanoHttpd/nanohttpd)

主要知识点

1. assets目录下的空目录是不会被打包进入到apk中的,所以判断文件和文件夹区别的使用list就可以。
   如果返回的数组为空(长度为0),就是文件。
2. 将所有的web页面都可以放置到wwwroot目录中
3. 将所有导入的插件都需要放置到wwwlib目录中(即dex文件都需要放置到这里哦)
4. 主要的wwwroot是在assets目录下,sdcard中为下载或上传文件目录
5. 主要的控制相关的内容都需要到assets目录下

*** 注意  *** 
1. wwwroot中目录名称不能带有"."符号,否则视为文件处理

功能内容

1. 具有基本的文件浏览功能
2. 能支持web服务插件
3. 将http Service开启之后,能自动常驻后台,除非主动停止外,系统杀掉之后,能自动启动
4. 支持assets根目录,与sdcard目录等多层目录作为web服务器的跟目录

期待新功能

1. 支持jar文件导入
2. 支持assets文件加密

httpservice's People

Contributors

mlufei avatar lulufei avatar

Watchers

James Cloos avatar  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.