Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.06 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.06 KB

webclip

The Web Clip implementation in Go

Features

  • Gzip compression embedded

Functions

  • IconString The app icon base64 string
  • IconFile The app icon from file
  • IconUri The app icon from uri resource
  • IconReader The app icon from reader
  • DefaultGenerator Generator without signed
  • SignedGenerator Generator with ivi signed
  • WrappedGenerateHandlerFunc Get the wrapped generate handler func
  • Serve Serve embedded http server
  • ServeRoute Serve embedded http server with custom routers

Embedded Routers

  • GET: /webclip/generate The Generate function called

request

Content-Type: multipart/form-data

Form Value: appName The Web Clip app name

Form Value: appUrl The Web Clip app url

Form File: appIcon The Web Clip app icon stream

Form Value: removable The Web Clip app removable

Form Value: fullScreen The Web Clip app fullScreen

response

stream with fileName=${appName}.mobileconfig

  • GET: /webclip/generate?xml The Generate function called, rendering xml