oreo

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 2 Imported by: 0

README

oreo

An http client fot go language.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OreoRouter

type OreoRouter struct {
	// contains filtered or unexported fields
}

func Oreo

func Oreo() *OreoRouter

New Router function . For creating new instance of OreoRouter

func (*OreoRouter) Listen

func (r *OreoRouter) Listen(port string, handler http.Handler, result string)

Listening and serving on port Result ensures that serving is done Handler might be nil

func (*OreoRouter) Req

func (r *OreoRouter) Req(path string, handler http.HandlerFunc)

Request a path e.g. /login Handler is ServerHTTP

func (*OreoRouter) ServeHTTP

func (r *OreoRouter) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL