99re热这里只有精品视频,7777色鬼xxxx欧美色妇,国产成人精品一区二三区在线观看,内射爽无广熟女亚洲,精品人妻av一区二区三区

iris RESTful API

2022-03-26 10:42 更新

iris同樣支持RESTful API,具體使用方法如下

package main

import "github.com/kataras/iris/v12"

func main() {
    app := iris.Default()
	//需自行添加對應函數
    app.Get("/someGet", getting)
	//func getting(ctx iris.Context){...}

    app.Post("/somePost", posting)
	//func posting(ctx iris.Context){...}

    app.Put("/somePut", putting)
	//func putting(ctx iris.Context){...}

    app.Delete("/someDelete", deleting)
	//func deleting(ctx iris.Context){...}

    app.Patch("/somePatch", patching)
	//func patching(ctx iris.Context){...}

    app.Header("/someHead", head)
	//func head(ctx iris.Context){...}

    app.Options("/someOptions", options)
	//func options(ctx iris.Context){...}

    app.Listen(":8080")
}


以上內容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號