mhttp

package
v0.0.0-...-820be1f Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP struct {
	ID               idwrap.IDWrap  `json:"id"`
	WorkspaceID      idwrap.IDWrap  `json:"workspace_id"`
	FolderID         *idwrap.IDWrap `json:"folder_id,omitempty"`
	Name             string         `json:"name"`
	Url              string         `json:"url"`
	Method           string         `json:"method"`
	Description      string         `json:"description"`
	BodyKind         HttpBodyKind   `json:"body_kind"`
	ContentHash      *string        `json:"content_hash,omitempty"`
	ParentHttpID     *idwrap.IDWrap `json:"parent_http_id,omitempty"`
	IsDelta          bool           `json:"is_delta"`
	IsSnapshot       bool           `json:"is_snapshot"`
	DeltaName        *string        `json:"delta_name,omitempty"`
	DeltaUrl         *string        `json:"delta_url,omitempty"`
	DeltaMethod      *string        `json:"delta_method,omitempty"`
	DeltaDescription *string        `json:"delta_description,omitempty"`
	DeltaBodyKind    *HttpBodyKind  `json:"delta_body_kind,omitempty"`
	LastRunAt        *int64         `json:"last_run_at,omitempty"`
	CreatedAt        int64          `json:"created_at"`
	UpdatedAt        int64          `json:"updated_at"`
}

type HTTPAssert

type HTTPAssert struct {
	ID                 idwrap.IDWrap  `json:"id"`
	HttpID             idwrap.IDWrap  `json:"http_id"`
	Value              string         `json:"value"`
	Enabled            bool           `json:"enabled"`
	Description        string         `json:"description"`
	DisplayOrder       float32        `json:"order"`
	ParentHttpAssertID *idwrap.IDWrap `json:"parent_http_assert_id,omitempty"`
	IsDelta            bool           `json:"is_delta"`
	DeltaValue         *string        `json:"delta_value,omitempty"`
	DeltaEnabled       *bool          `json:"delta_enabled,omitempty"`
	DeltaDescription   *string        `json:"delta_description,omitempty"`
	DeltaDisplayOrder  *float32       `json:"delta_order,omitempty"`
	CreatedAt          int64          `json:"created_at"`
	UpdatedAt          int64          `json:"updated_at"`
}

func (HTTPAssert) IsEnabled

func (a HTTPAssert) IsEnabled() bool

type HTTPBodyForm

type HTTPBodyForm struct {
	ID                   idwrap.IDWrap  `json:"id"`
	HttpID               idwrap.IDWrap  `json:"http_id"`
	Key                  string         `json:"key"`
	Value                string         `json:"value"`
	Description          string         `json:"description"`
	Enabled              bool           `json:"enabled"`
	DisplayOrder         float32        `json:"order"`
	ParentHttpBodyFormID *idwrap.IDWrap `json:"parent_http_body_form_id,omitempty"`
	IsDelta              bool           `json:"is_delta"`
	DeltaKey             *string        `json:"delta_key,omitempty"`
	DeltaValue           *string        `json:"delta_value,omitempty"`
	DeltaDescription     *string        `json:"delta_description,omitempty"`
	DeltaEnabled         *bool          `json:"delta_enabled,omitempty"`
	DeltaDisplayOrder    *float32       `json:"delta_order,omitempty"`
	CreatedAt            int64          `json:"created_at"`
	UpdatedAt            int64          `json:"updated_at"`
}

func (HTTPBodyForm) IsEnabled

func (f HTTPBodyForm) IsEnabled() bool

type HTTPBodyRaw

type HTTPBodyRaw struct {
	ID                   idwrap.IDWrap  `json:"id"`
	HttpID               idwrap.IDWrap  `json:"http_id"`
	RawData              []byte         `json:"raw_data"`
	CompressionType      int8           `json:"compression_type"`
	ParentBodyRawID      *idwrap.IDWrap `json:"parent_body_raw_id,omitempty"`
	IsDelta              bool           `json:"is_delta"`
	DeltaRawData         []byte         `json:"delta_raw_data,omitempty"`
	DeltaCompressionType interface{}    `json:"delta_compression_type,omitempty"`
	CreatedAt            int64          `json:"created_at"`
	UpdatedAt            int64          `json:"updated_at"`
}

type HTTPBodyUrlencoded

type HTTPBodyUrlencoded struct {
	ID                         idwrap.IDWrap  `json:"id"`
	HttpID                     idwrap.IDWrap  `json:"http_id"`
	Key                        string         `json:"key"`
	Value                      string         `json:"value"`
	Enabled                    bool           `json:"enabled"`
	Description                string         `json:"description"`
	DisplayOrder               float32        `json:"order"`
	ParentHttpBodyUrlEncodedID *idwrap.IDWrap `json:"parent_http_body_url_encoded_id,omitempty"`
	IsDelta                    bool           `json:"is_delta"`
	DeltaKey                   *string        `json:"delta_key,omitempty"`
	DeltaValue                 *string        `json:"delta_value,omitempty"`
	DeltaEnabled               *bool          `json:"delta_enabled,omitempty"`
	DeltaDescription           *string        `json:"delta_description,omitempty"`
	DeltaDisplayOrder          *float32       `json:"delta_order,omitempty"`
	CreatedAt                  int64          `json:"created_at"`
	UpdatedAt                  int64          `json:"updated_at"`
}

func (HTTPBodyUrlencoded) IsEnabled

func (u HTTPBodyUrlencoded) IsEnabled() bool

type HTTPHeader

type HTTPHeader struct {
	ID                 idwrap.IDWrap  `json:"id"`
	HttpID             idwrap.IDWrap  `json:"http_id"`
	Key                string         `json:"key"`
	Value              string         `json:"value"`
	Enabled            bool           `json:"enabled"`
	Description        string         `json:"description"`
	DisplayOrder       float32        `json:"order"`
	ParentHttpHeaderID *idwrap.IDWrap `json:"parent_http_header_id,omitempty"`
	IsDelta            bool           `json:"is_delta"`
	DeltaKey           *string        `json:"delta_key,omitempty"`
	DeltaValue         *string        `json:"delta_value,omitempty"`
	DeltaEnabled       *bool          `json:"delta_enabled,omitempty"`
	DeltaDescription   *string        `json:"delta_description,omitempty"`
	DeltaDisplayOrder  *float32       `json:"delta_order,omitempty"`
	CreatedAt          int64          `json:"created_at"`
	UpdatedAt          int64          `json:"updated_at"`
}

func (HTTPHeader) IsEnabled

func (h HTTPHeader) IsEnabled() bool

type HTTPResponse

type HTTPResponse struct {
	ID        idwrap.IDWrap `json:"id"`
	HttpID    idwrap.IDWrap `json:"http_id"`
	Status    int32         `json:"status"`
	Body      []byte        `json:"body"`
	Time      int64         `json:"time"`
	Duration  int32         `json:"duration"`
	Size      int32         `json:"size"`
	CreatedAt int64         `json:"created_at"`
}

type HTTPResponseAssert

type HTTPResponseAssert struct {
	ID         idwrap.IDWrap `json:"id"`
	ResponseID idwrap.IDWrap `json:"response_id"`
	Value      string        `json:"value"`
	Success    bool          `json:"success"`
	CreatedAt  int64         `json:"created_at"`
}

type HTTPResponseHeader

type HTTPResponseHeader struct {
	ID          idwrap.IDWrap `json:"id"`
	ResponseID  idwrap.IDWrap `json:"response_id"`
	HeaderKey   string        `json:"header_key"`
	HeaderValue string        `json:"header_value"`
	CreatedAt   int64         `json:"created_at"`
}

type HTTPSearchParam

type HTTPSearchParam struct {
	ID                      idwrap.IDWrap  `json:"id"`
	HttpID                  idwrap.IDWrap  `json:"http_id"`
	Key                     string         `json:"key"`
	Value                   string         `json:"value"`
	Description             string         `json:"description"`
	Enabled                 bool           `json:"enabled"`
	DisplayOrder            float64        `json:"order"`
	ParentHttpSearchParamID *idwrap.IDWrap `json:"parent_http_search_param_id,omitempty"`
	IsDelta                 bool           `json:"is_delta"`
	DeltaKey                *string        `json:"delta_key,omitempty"`
	DeltaValue              *string        `json:"delta_value,omitempty"`
	DeltaDescription        *string        `json:"delta_description,omitempty"`
	DeltaEnabled            *bool          `json:"delta_enabled,omitempty"`
	DeltaDisplayOrder       *float64       `json:"delta_order,omitempty"`
	CreatedAt               int64          `json:"created_at"`
	UpdatedAt               int64          `json:"updated_at"`
}

func (HTTPSearchParam) IsEnabled

func (p HTTPSearchParam) IsEnabled() bool

type HTTPStream

type HTTPStream struct {
	HttpID    idwrap.IDWrap
	Preset    string
	TimeoutMs int64
}

HTTPStream is an HTTP request's stream settings: the yamlflow stream: preset (openai, anthropic, vercel-ai or sse) and stream_timeout_ms (0 = the engine default).

type HttpBodyKind

type HttpBodyKind int8
const (
	HttpBodyKindNone       HttpBodyKind = 0
	HttpBodyKindFormData   HttpBodyKind = 1
	HttpBodyKindUrlEncoded HttpBodyKind = 2
	HttpBodyKindRaw        HttpBodyKind = 3
)

type HttpVersion

type HttpVersion struct {
	ID                 idwrap.IDWrap  `json:"id"`
	HttpID             idwrap.IDWrap  `json:"http_id"`
	VersionName        string         `json:"version_name"`
	VersionDescription string         `json:"version_description"`
	IsActive           bool           `json:"is_active"`
	CreatedAt          int64          `json:"created_at"`
	CreatedBy          *idwrap.IDWrap `json:"created_by,omitempty"`
}

Jump to

Keyboard shortcuts

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