api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: MIT Imports: 3 Imported by: 0

README

HttpRR

A simple HTTP Request & Response Service.

Run locally: $ docker run -p 80:80 inherelab/httprr

Overview

This server was generated by the [swagger-codegen] (https://github.com/swagger-api/swagger-codegen) project.
By using the OpenAPI-Spec from a remote server, you can easily generate a server stub.

To see how to make this your own, look here:

README

Running the server

To run the server, follow these simple steps:

go run main.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsoluteRedirectNGet

func AbsoluteRedirectNGet(c *rux.Context)

func Base64ValueGet

func Base64ValueGet(c *rux.Context)

func BasicAuthUserPasswdGet

func BasicAuthUserPasswdGet(c *rux.Context)

func BearerGet

func BearerGet(c *rux.Context)

func BrotliGet

func BrotliGet(c *rux.Context)

func BytesNGet

func BytesNGet(c *rux.Context)

func CacheGet

func CacheGet(c *rux.Context)

CacheGet operate API

func CacheValueGet

func CacheValueGet(c *rux.Context)

CacheValueGet operate API

func DeflateGet

func DeflateGet(c *rux.Context)

func DelayDelayDelete

func DelayDelayDelete(c *rux.Context)

func DelayDelayGet

func DelayDelayGet(c *rux.Context)

func DelayDelayPatch

func DelayDelayPatch(c *rux.Context)

func DelayDelayPost

func DelayDelayPost(c *rux.Context)

func DelayDelayPut

func DelayDelayPut(c *rux.Context)

func DenyGet

func DenyGet(c *rux.Context)

func DigestAuthQopUserPasswdAlgorithmGet

func DigestAuthQopUserPasswdAlgorithmGet(c *rux.Context)

func DigestAuthQopUserPasswdAlgorithmStaleAfterGet

func DigestAuthQopUserPasswdAlgorithmStaleAfterGet(c *rux.Context)

func DigestAuthQopUserPasswdGet

func DigestAuthQopUserPasswdGet(c *rux.Context)

func DripGet

func DripGet(c *rux.Context)

func EncodingUtf8Get

func EncodingUtf8Get(c *rux.Context)

func EtagEtagGet

func EtagEtagGet(c *rux.Context)

EtagEtagGet operate API

func GzipGet

func GzipGet(c *rux.Context)

func Headers

func Headers(c *rux.Context)

func HiddenBasicAuthUserPasswdGet

func HiddenBasicAuthUserPasswdGet(c *rux.Context)

func HtmlGet

func HtmlGet(c *rux.Context)

func Ip

func Ip(c *rux.Context)

func JsonGet

func JsonGet(c *rux.Context)

func LinksNOffsetGet

func LinksNOffsetGet(c *rux.Context)

func RangeNumbytesGet

func RangeNumbytesGet(c *rux.Context)

func RedirectNGet

func RedirectNGet(c *rux.Context)

func RedirectToDelete

func RedirectToDelete(c *rux.Context)

func RedirectToGet

func RedirectToGet(c *rux.Context)

func RedirectToPatch

func RedirectToPatch(c *rux.Context)

func RedirectToPost

func RedirectToPost(c *rux.Context)

func RedirectToPut

func RedirectToPut(c *rux.Context)

func RelativeRedirectNGet

func RelativeRedirectNGet(c *rux.Context)

func ResponseHeadersGet

func ResponseHeadersGet(c *rux.Context)

ResponseHeadersGet operate API

func ResponseHeadersPost

func ResponseHeadersPost(c *rux.Context)

ResponseHeadersPost operate API

func RobotsTxtGet

func RobotsTxtGet(c *rux.Context)

func StreamBytesNGet

func StreamBytesNGet(c *rux.Context)

func StreamNGet

func StreamNGet(c *rux.Context)

func UserAgent

func UserAgent(c *rux.Context)

func UuidGet

func UuidGet(c *rux.Context)

func XmlGet

func XmlGet(c *rux.Context)

Types

type Anything

type Anything struct{}

func (*Anything) AddRoutes

func (grp *Anything) AddRoutes(r *rux.Router)

func (*Anything) AnythingDelete

func (*Anything) AnythingDelete(c *rux.Context)

func (*Anything) AnythingGet

func (*Anything) AnythingGet(c *rux.Context)

func (*Anything) AnythingPatch

func (*Anything) AnythingPatch(c *rux.Context)

func (*Anything) AnythingPost

func (*Anything) AnythingPost(c *rux.Context)

func (*Anything) AnythingPut

func (*Anything) AnythingPut(c *rux.Context)

func (*Anything) Delete

func (*Anything) Delete(c *rux.Context)

func (*Anything) Get

func (*Anything) Get(c *rux.Context)

func (*Anything) Patch

func (*Anything) Patch(c *rux.Context)

func (*Anything) Post

func (*Anything) Post(c *rux.Context)

func (*Anything) Put

func (*Anything) Put(c *rux.Context)

type Cookies

type Cookies struct{}

Cookies APIs examples

func (*Cookies) AddRoutes

func (grp *Cookies) AddRoutes(r *rux.Router)

func (*Cookies) Delete

func (*Cookies) Delete(c *rux.Context)

func (*Cookies) Get

func (*Cookies) Get(c *rux.Context)

func (*Cookies) Set

func (*Cookies) Set(c *rux.Context)

func (*Cookies) SetNameValue

func (*Cookies) SetNameValue(c *rux.Context)

type DynamicData

type DynamicData struct{}

DynamicData dynamic data examples

type HttpMethods

type HttpMethods struct{}

HttpMethods APIs http methods examples

func (*HttpMethods) AddRoutes

func (grp *HttpMethods) AddRoutes(r *rux.Router)

func (*HttpMethods) Delete

func (*HttpMethods) Delete(c *rux.Context)

func (*HttpMethods) Get

func (*HttpMethods) Get(c *rux.Context)

func (*HttpMethods) Patch

func (*HttpMethods) Patch(c *rux.Context)

func (*HttpMethods) Post

func (*HttpMethods) Post(c *rux.Context)

func (*HttpMethods) Put

func (*HttpMethods) Put(c *rux.Context)

type Image

type Image struct{}

Image APIs examples

func (*Image) AddRoutes

func (grp *Image) AddRoutes(r *rux.Router)

func (*Image) Get

func (*Image) Get(c *rux.Context)

func (*Image) JpegGet

func (*Image) JpegGet(c *rux.Context)

func (*Image) PngGet

func (*Image) PngGet(c *rux.Context)

func (*Image) SvgGet

func (*Image) SvgGet(c *rux.Context)

func (*Image) WebpGet

func (*Image) WebpGet(c *rux.Context)

type Redirect

type Redirect struct{}

type RequestInspection

type RequestInspection struct{}

RequestInspection Inspect the request data

type StatusCode

type StatusCode struct{}

StatusCode APIs return submitted status code

func (*StatusCode) AddRoutes

func (grp *StatusCode) AddRoutes(r *rux.Router)

func (*StatusCode) Delete

func (*StatusCode) Delete(c *rux.Context)

@Tags StatusCode @Summary Status Code @Description get app health @Success 201 {string} json data @Failure 403 body is empty @Router /status/{code} [delete]

func (*StatusCode) Get

func (*StatusCode) Get(c *rux.Context)

@Tags appApi @Summary Get app config @Param key query string false "config key string" @Success 201 {string} json data @Failure 403 body is empty @router /status/{code} [get]

func (*StatusCode) Patch

func (*StatusCode) Patch(c *rux.Context)

func (*StatusCode) Post

func (*StatusCode) Post(c *rux.Context)

func (*StatusCode) Put

func (*StatusCode) Put(c *rux.Context)

Jump to

Keyboard shortcuts

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