Documentation ¶
Index ¶
- type Exchange
- func (ex Exchange) BodyBytes() []byte
- func (ex Exchange) BodyString() string
- func (ex Exchange) ExposableHeadersMap() map[string]any
- func (ex Exchange) Field(name string) string
- func (ex Exchange) FindIncomingIPAddress() string
- func (ex Exchange) FindScheme() string
- func (ex Exchange) Finish(resp response.Response)
- func (ex Exchange) FormParamSingle(name string) (string, error)
- func (ex Exchange) FullUrl() string
- func (ex Exchange) HeaderValueLast(name string) string
- func (ex Exchange) MatchAndLoadFields(routePat regexp.Regexp) bool
- func (ex Exchange) QueryParamInt(name string, value int) (int, error)
- func (ex Exchange) QueryParamSingle(name string) (string, error)
- func (ex Exchange) Redirect(target string)
- func (ex Exchange) RespondBadRequest(message string, vars ...any)
- func (ex Exchange) RespondError(status int, code, detail string)
- func (ex Exchange) RespondWithStatus(errorStatus int)
- func (ex Exchange) Write(content string)
- func (ex Exchange) WriteBytes(content []byte)
- func (ex Exchange) WriteF(content string, vars ...any)
- func (ex Exchange) WriteJSON(data any)
- func (ex Exchange) WriteLn(content string)
- type HandlerFn
- type HandlerFn2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exchange ¶
type Exchange struct { Request *http.Request ResponseWriter http.ResponseWriter Fields map[string]string CappedBody io.Reader RoutedPath string OriginalPath string RoutedRawPath string OriginalRawPath string ServerSpec spec.Spec }
func (Exchange) BodyString ¶
func (Exchange) ExposableHeadersMap ¶
func (Exchange) FindIncomingIPAddress ¶
FindIncomingIPAddress Find the IP address of the client that made this Exchange.
func (Exchange) FindScheme ¶
func (Exchange) HeaderValueLast ¶
func (Exchange) MatchAndLoadFields ¶
func (Exchange) QueryParamInt ¶
func (Exchange) RespondBadRequest ¶
func (Exchange) RespondError ¶
func (Exchange) RespondWithStatus ¶
func (Exchange) WriteBytes ¶
type HandlerFn2 ¶
Click to show internal directories.
Click to hide internal directories.