request

package module
v0.0.0-...-7c2668e Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 11 Imported by: 0

README

Requests Parser

Simple HTTP requests file parser written in Go.

Inspired by https://www.jetbrains.com/help/idea/exploring-http-syntax.html

build

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyError

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

func (BodyError) Error

func (e BodyError) Error() string

type InvalidHeaderError

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

func (InvalidHeaderError) Error

func (e InvalidHeaderError) Error() string

type InvalidRequestFileError

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

func (InvalidRequestFileError) Error

func (e InvalidRequestFileError) Error() string

type InvalidRequestLineError

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

func (InvalidRequestLineError) Error

func (e InvalidRequestLineError) Error() string

type InvalidURLError

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

func (InvalidURLError) Error

func (e InvalidURLError) Error() string

type Parser

type Parser struct {
	BaseURL string
	Path    string
}

func (Parser) Parse

func (p Parser) Parse(fileName string, data any) ([]*http.Request, error)

func (Parser) ParseSingle

func (p Parser) ParseSingle(fileName string, data any) (*http.Request, error)

type TemplateError

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

func (TemplateError) Error

func (e TemplateError) Error() string

Jump to

Keyboard shortcuts

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