Giter VIP home page Giter VIP logo

mimeheader's Introduction

Hello there, ๐Ÿ‘‹

I'm Anton Ohorodnyk, a Software Engineer by trade. Here's a quick rundown about me:

  • I've been navigating the software engineering seas since 2005.
  • Occasionally, you'll find me penning thoughts on my blog.
  • My journey with social media has been a rocky one, with the exception of my time on Jabber and IRC. However, I'm looking forward to reintegrating into the tech-savvy world through Mastodon.
  • I'm an active contributor to various open-source projects, with most of my contributions proudly displayed here on GitHub.
  • I am an advocate for minimalism and simplicity, reflected clearly in my coding style and designs.
  • I'm an enthusiast of Golang, backend development, databases, distributed systems, and Web Technologies.
  • I greatly enjoy collaborating with others, so don't hesitate to connect with me through any available channel.

๐Ÿ“ซ How to reach me:

I prefer to keep information consistent, so the best way to find all the ways to reach me is through my website.

mimeheader's People

Contributors

aohorodnyk avatar jake-convictional avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mimeheader's Issues

Allow MimeHeaders to be returned from AcceptHeader

Hi @aohorodnyk, thanks for the useful library!

It would be great if AcceptHeader.mheaders were exported so that we can invent our own custom negotiations while still using the parsing from your package. I'll put up a PR for your review.

Proposed change:

Current:

type AcceptHeader struct {
	mheaders []MimeHeader
}

Becomes:

type AcceptHeader struct {
	MHeaders []MimeHeader
}

Ignore q param in sotring

We have a logic where we sort mime types by number of params. Currently sorting is done by number of params include q quality param. But following specification, looks like quality is good to ignore.

Actual:
Mime type application/json;q=1;test=t will have the same priority as application/xml;charset=utf-8;test=t.

Expected:
Mime type application/json;q=1;test=t has lower priority than application/xml;charset=utf-8;test=t.

Accept-Encoding support

Hi. Thanks for the library :)

Any plans for adding Accept-Encoding support? It currently doesn't work, I suspect because "gzip, br" doesn't contain slashes like mime-types.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.