Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const AuthorizationHeader + const ClientIDHeader + const ClientNameHeader + const ContentTypeHeader + const CookieNameOpenapiSession + const InternalActionHeader + const InternalHeader + const LangHeader + const OrgHeader + const RequestIDHeader + const UseTokenHeader + const UserHeader + const UserInfoDesensitizedHeader + var ContentTypeMultiPartFormData = "multipart/form-data" + var HeaderKeyAccept = textproto.CanonicalMIMEHeaderKey("Accept") + var HeaderKeyAcceptEncoding = textproto.CanonicalMIMEHeaderKey("Accept-Encoding") + var HeaderKeyAccessControlAllowOrigin = textproto.CanonicalMIMEHeaderKey("Access-Control-Allow-Origin") + var HeaderKeyAuthorization = textproto.CanonicalMIMEHeaderKey("Authorization") + var HeaderKeyContentDisposition = textproto.CanonicalMIMEHeaderKey("Content-Disposition") + var HeaderKeyContentEncoding = textproto.CanonicalMIMEHeaderKey("Content-Encoding") + var HeaderKeyContentLength = textproto.CanonicalMIMEHeaderKey("content-length") + var HeaderKeyContentType = textproto.CanonicalMIMEHeaderKey("content-type") + var HeaderKeyUserAgent = textproto.CanonicalMIMEHeaderKey("User-Agent") + func CopyHeader[R RequestResponse](r R) http.Header + func DeepCopyRequest(r *http.Request) (*http.Request, error) + func DeepCopyRequestResponse[R RequestResponse](r R) (R, error) + func DeepCopyResponse(response *http.Response) (*http.Response, error) + func GetUserAgent(header http.Header) string + func HeaderContains[Header http.Header | []String | []string | ~string, String ~string](header Header, s String) bool + func JoinPath(appendRoot bool, segments ...string) string + func JoinPathR(segments ...string) string + func NopCloseReadBodyBuf[R RequestResponse](buf *bytes.Buffer, r R) (int64, error) + func NopCloseReadBody[R RequestResponse](r R) (*bytes.Buffer, error) + type ContentType string + const ApplicationJson + const ApplicationJsonUTF8 + const TextEventStream + const URLEncodedFormMime + type RequestResponse interface