codegen

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTargetCode

func GenerateTargetCode(targetLangLib string, parsedAPI *gabs.Container)

func GetHARHeadersCookies

func GetHARHeadersCookies(headers *gabs.Container) (*gabs.Container, *gabs.Container)

takes in the headers in L2 format, and generates HAR compatible

func GetRequestHARString

func GetRequestHARString(block *gabs.Container) string

func PrepareHTTPSnippetGenerator

func PrepareHTTPSnippetGenerator(snippetArgs SnippetArgs) string

func SplitLangLib

func SplitLangLib(targetLangLib string) (string, string)

Types

type SnippetArgs

type SnippetArgs struct {
	Language    string
	Library     string
	HARRequest  string
	SnippetCore string
}

Jump to

Keyboard shortcuts

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