munnincore

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 8 Imported by: 1

README

Muninn Core

Muninn core is a library for handling the reading, sending and formating of http requests using the .http file format.

Supported Formats
  • JSON

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpRequest

type HttpRequest struct {
	Title   string
	Method  string
	URL     string
	Headers map[string]string
	Body    io.Reader
}

func ReadHttpFile

func ReadHttpFile(path string) ([]HttpRequest, error)

Reader functions

type HttpResponse

type HttpResponse struct {
	Response *http.Response
	Error    error
}

func SendHttpRequest

func SendHttpRequest(request HttpRequest) (*HttpResponse, error)

func SendHttpRequests

func SendHttpRequests(requests []HttpRequest) ([]HttpResponse, error)

Send Functions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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