Skip to content

This repository contains the built'n RESTful render types like JSON,XML and so on for the Iris web framework

License

Notifications You must be signed in to change notification settings

fasthttp-contrib/rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository information

This repository contains the restful types context's rendering for Iris web framework and fasthttp. The idea of this came from unrolled/render, which I had the time to convert it for fasthttp & iris & improve even more its performance and usability.

Quick look

// small example for json rendering, same for all other

package main

import (
	"github.com/kataras/iris"
)

func main() {
	iris.Get("/hi_json", func(ctx *iris.Context) {
		ctx.JSON(iris.StatusOK, iris.Map{
			"Name": "Iris",
			"Age":  2,
		}) // ctx.XML, ctx.Data, ctx.Text, ctx.JSONP...
	})

	iris.Listen(":8080")
}

How to use

License

This project is licensed under the MIT License.

License can be found here.

About

This repository contains the built'n RESTful render types like JSON,XML and so on for the Iris web framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages