Documentation
¶
Overview ¶
Package har provides functionality for parsing and manipulating HAR (HTTP Archive) files. This is a compatibility wrapper that forwards to the implementation in pkg/har.
Index ¶
- Constants
- Variables
- type AfterRequest
- type BeforeRequest
- type Browser
- type Cache
- type CallFrame
- type Content
- type ContentProvider
- type ConvertFormat
- type ConvertOptions
- type Cookie
- type CookieProvider
- type Creator
- type Entries
- type EntryIterator
- type EntryProvider
- type ErrorCode
- type FilterOptions
- type FilterResult
- type HARProvider
- type HTTPMethod
- type Har
- type HarError
- type HeaderProvider
- type Headers
- type Initiator
- type LazyContent
- type LazyEntries
- type LazyHar
- type LazyResponse
- type Log
- type OptimizedContent
- type OptimizedEntries
- type OptimizedHar
- type OptimizedRequest
- type OptimizedResponse
- type OptimizedTimings
- type Option
- type PageProvider
- type PageTimings
- type PageTimingsProvider
- type Pages
- type Parent
- type ParentID
- type ParseOptions
- type Request
- type RequestProvider
- type Response
- type ResponseProvider
- type Result
- type Stack
- type StreamingEntryIterator
- type StreamingHar
- type Timings
- type TimingsProvider
Constants ¶
View Source
const ( MethodUnknown = har.MethodUnknown MethodGET = har.MethodGET MethodPOST = har.MethodPOST MethodPUT = har.MethodPUT MethodDELETE = har.MethodDELETE MethodHEAD = har.MethodHEAD MethodOPTIONS = har.MethodOPTIONS MethodPATCH = har.MethodPATCH MethodCONNECT = har.MethodCONNECT MethodTRACE = har.MethodTRACE )
HTTP Method constants
View Source
const ( FormatCSV = har.FormatCSV FormatMarkdown = har.FormatMarkdown FormatHTML = har.FormatHTML FormatText = har.FormatText )
Format constants
View Source
const ( ErrCodeUnknown = har.ErrCodeUnknown ErrCodeFileSystem = har.ErrCodeFileSystem ErrCodeJSONParse = har.ErrCodeJSONParse ErrCodeInvalidFormat = har.ErrCodeInvalidFormat ErrCodeValidation = har.ErrCodeValidation ErrCodeMissingField = har.ErrCodeMissingField ErrCodeInvalidValue = har.ErrCodeInvalidValue ErrCodeUnsupported = har.ErrCodeUnsupported )
Error code constants
Variables ¶
View Source
var ( // Basic operations ParseHarFile = har.ParseHarFile ParseHar = har.ParseHar NewHar = har.NewHar // Optimized parsing ParseHarFileOptimized = har.ParseHarFileOptimized ParseHarOptimized = har.ParseHarOptimized ToOptimizedHar = har.ToOptimizedHar // Lazy loading ParseHarWithLazyLoading = har.ParseHarWithLazyLoading ParseHarFileWithLazyLoading = har.ParseHarFileWithLazyLoading // Streaming NewStreamingHarFromFile = har.NewStreamingHarFromFile // Enhanced parsing ParseHarWithOptions = har.ParseHarWithOptions ParseHarFileWithOptions = har.ParseHarFileWithOptions ParseHarEnhanced = har.ParseHarEnhanced ParseHarFileEnhanced = har.ParseHarFileEnhanced ParseHarLenient = har.ParseHarLenient ParseHarFileLenient = har.ParseHarFileLenient ParseHarWithWarnings = har.ParseHarWithWarnings ParseHarFileWithWarnings = har.ParseHarFileWithWarnings DefaultParseOptions = har.DefaultParseOptions // Error utilities NewHarError = har.NewHarError NewFileSystemError = har.NewFileSystemError NewJSONParseError = har.NewJSONParseError WrapJSONUnmarshalError = har.WrapJSONUnmarshalError NewValidationError = har.NewValidationError NewInvalidFormatError = har.NewInvalidFormatError NewMissingFieldError = har.NewMissingFieldError NewInvalidValueError = har.NewInvalidValueError NewUnsupportedError = har.NewUnsupportedError // Utilities ParseMethod = har.ParseMethod DefaultConvertOptions = har.DefaultConvertOptions // 新的函数选项模式API Parse = har.Parse ParseFile = har.ParseFile NewStreamingParser = har.NewStreamingParser NewStreamingParserFromFile = har.NewStreamingParserFromFile // 选项函数 WithLenient = har.WithLenient WithSkipValidation = har.WithSkipValidation WithCollectWarnings = har.WithCollectWarnings WithMaxWarnings = har.WithMaxWarnings WithMemoryOptimized = har.WithMemoryOptimized WithLazyLoading = har.WithLazyLoading WithStreaming = har.WithStreaming // 预定义选项组 OptMemoryEfficient = har.OptMemoryEfficient OptFast = har.OptFast OptLenient = har.OptLenient OptPerformance = har.OptPerformance )
Forward all functions
Functions ¶
This section is empty.
Types ¶
type AfterRequest ¶
type AfterRequest = har.AfterRequest
AfterRequest represents cache state after request
type BeforeRequest ¶
type BeforeRequest = har.BeforeRequest
BeforeRequest represents cache state before request
type PageTimings ¶
type PageTimings = har.PageTimings
PageTimings represents page timing information
Directories
¶
| Path | Synopsis |
|---|---|
|
advanced
command
|
|
|
cli-tool
command
|
|
|
error_handling
command
|
|
|
performance
command
|
|
|
statistics
command
|
|
|
visualization
command
|
|
|
pkg
|
|
Click to show internal directories.
Click to hide internal directories.